Pointer Cancellation
An action triggered by a click or tap completes on the up event, not the down event, so the user can move the pointer away before releasing to cancel. Exceptions exist for actions where the down event is essential, such as a piano key.
Why it matters
People with tremors or limited motor control press the wrong thing often. If the action fires the instant their finger touches down, there is no chance to recover. Firing on release, which is how native buttons behave, gives them an undo.
Needs manual testing
Which pointer event triggers an action is a code-level detail no rule reports. Press down on each control, slide off it, release, and check nothing happened.
Fails
<div class="delete" onmousedown="deleteItem()" ontouchstart="deleteItem()">Delete</div>The item is deleted the moment the pointer goes down. Sliding off to cancel does nothing because it is already gone.
Passes
<button type="button" onclick="deleteItem()">Delete</button>A native button fires click on release and only if the pointer is still over it. Starting a press and sliding off cancels it for free.
Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.
Scan your site free