Prevent stray clicks to rollback icons
Describe your suggestion
With great speed comes great capacity to make mistakes, and stray clicks are a common occurrence due to the way the DOM quickly flexes to make space for RedWarn. Additionally, RedWarn no longer displays a dialog for quick rollback buttons, making it easy to misclick. Thus, it may be important to implement a method to block stray clicks if the rollback icons have been inserted within a short enough period of time.
The plan is to block, or ask confirmation for, clicks to RedWarn rollback icons if the icon had only been inserted to the DOM less than 200ms prior. This should be enough time to avoid accidental stray clicks due to insertion.
An additional idea is to also block movement-based stray clicks, meaning asking for confirmation if the cursor was moving too fast prior to clicking (to a threshold to be determined sometime).
This should hopefully decrease the occurrence of stray clicks both due to DOM insertion or rapid mouse movement.
An alternative to (or possibly a better choice versus) this idea is providing a cancel button which prevents sending the edit
API request. This wastes a bit of data (due to the earlier page content pull), however can prevent actions given enough reaction time. We can also just trout anyone who makes mistakes.
Settings
For both blocks, there should be an option to configure whether the action a) is blocked entirely, b) requires confirmation, or c) is permitted. Additionally, the threshold as to how early since DOM insertion and how fast the cursor is moving should also be configurable. Since this feature may be annoying to some users, the possibility of having this safety feature disabled by default should be considered.