Skip to main content
Perceivly: Perceivly home

2.5.2 Pointer Cancellation

Level A · added in WCAG 2.1

Single-pointer actions should run on the up-event, when you lift your finger or release the mouse button. That way you can slide off a control to cancel a press you didn't mean to make.

Who it helps

People with tremors, limited dexterity or low vision often press the wrong control by accident. When actions wait for the release, they can move away and cancel. It also helps anyone who taps the wrong item on a crowded touch screen.

How to meet it

Examples

Fails:A delete button that fires as soon as the pointer goes down
<button type="button" onpointerdown="deleteMessage()">
  Delete message
</button>
Passes:The same button using click, which fires on release
<button type="button" onclick="deleteMessage()">
  Delete message
</button>

Can a scanner detect this?

No

axe-core has no rule for this criterion. Event handlers are often attached in scripts, and a tool cannot tell whether a down-event action can be aborted or undone. You need to press each control, slide off before releasing, and check that nothing happened.

No automated rule tests this criterion. Check it by hand.

Common mistakes

Official W3C explanation of 2.5.2

Check your own page

See which automated WCAG checks your page fails, with the failing elements and how to fix them.

Enter a page address, for example example.com/shop.

Reviewed November 2, 2026