Checklist Guide

Stopping an Accidental Tap on the Call or Book Button

Short answer

A call or book button should act when a finger is lifted, not when it first lands. That way a person whose hand slips can slide away and cancel. Standard links and buttons already work this way. Custom scripts that react to the touch-down are the usual cause of trouble.

By Gio LaRocheUpdated 5 min read
Get my free auditor call (561) 291-2681

The wrong number dialed by accident

Imagine a visitor with a tremor holding a phone on a bus. Their thumb brushes the Call button while scrolling. If the page reacts the instant a finger lands, the phone is already dialing your front desk, and your staff answers a call from someone who never meant to ring. The same slip on a Book button can open a booking window the visitor now has to back out of.

The W3C Pointer Cancellation criterion, which we read in full, exists to make that kind of slip easy to recover from.

Down-event and up-event in plain words

A touch has two moments: the finger landing, called the down-event, and the finger lifting, called the up-event. The W3C calls activating on release the most accessible way to meet the criterion. When a control acts only on lift, the user gets a chance to abort: if they land on the wrong target, they slide away before lifting and nothing happens.

The criterion offers a few routes. The action fires on release; or the person can abort or undo it; or the release reverses what the touch started. Firing on the down-event is allowed only when that timing is essential, and the W3C's examples are things like an on-screen piano key or a keyboard on screen.

Control on your pageWhat to check
Call button built as a tel linkNormally acts on release through the browser, so usually fine
Book button that opens a windowDoes the window open only after the finger lifts?
Button wired to a custom scriptIs the script attached to click, or to touch-down?
Slide-out menu or chat bubbleCan a stray touch open it with no way to cancel?

Why custom code is where it goes wrong

The W3C points out that the ordinary click event in JavaScript runs on release of the primary mouse button, so it is an up-event even though its name suggests otherwise, and it works for touch and keyboard as well. Trouble tends to start when a developer attaches an action to a touch-start or mouse-down event instead.

How to test it on your own phone

  1. 1Open your home page and find the Call and Book buttons.
  2. 2Press and hold your finger on the Call button without lifting. Nothing should dial yet.
  3. 3While still holding, slide your finger off the button and lift. The phone should not dial.
  4. 4Repeat on every Book, Message and menu control a patient might brush.
  5. 5Note any control that acts while your finger is still down.

On some phones the dial prompt shows a confirmation before calling, which gives a second chance but does not replace the test. Check what happens on the first touch, and write down what you saw for your developer.

What to hand the developer

Ask that every call, book and message control act on the click event, or on the up-event, and that nothing important fires on touch-down. Our guide to tap target size and spacing covers the other half of the problem, which is buttons so close together that a stray touch lands on the wrong one. Keeping the number a real link, as in our click-to-call guide, is the safest base. This is practical guidance, not legal advice.

Frequently asked questions

Does my tel link already meet this?

A plain tel link normally dials on release, through the browser, so it usually behaves well. Custom buttons built from scripts are the ones to test. Press and hold, slide off, and lift: if nothing happens, the control lets a person cancel, which is what the W3C asks for.

Is firing on touch-down ever acceptable?

Only where the timing is essential. The W3C names an on-screen piano or a software keyboard as examples. A call button, a booking button or a menu is not essential in that sense, so these should act when the finger is lifted.

What is the difference between this and tap target size?

Target size is about how big and how far apart the buttons are, so a finger lands on the right one. Pointer cancellation is about what happens when it lands on the wrong one. A well-built phone page does both, and the two guides together cover them.

Will fixing this change my call tracking?

It should not. Click-based tracking already runs on release. Ask your developer to confirm that the phone-tap event still records after the change, and compare your tap count for a few weeks before and after to be sure nothing dropped.

Who is helped by this beyond people with tremors?

The W3C says it makes it easier for all users to recover from hitting the wrong target. Anyone using a phone while walking, holding a child or wearing gloves benefits, along with people who use head pointers or other adapted devices.

Sources

Keep reading

Ready to Grow Your Practice?

Primara is now accepting new independent practices nationwide. Most new engagements begin within one week.

Send Us a Message

We respond within one business day.

* Required field

We'll call to confirm your consultation.

No spam, ever. HIPAA-aware agency. We respond within one business day. For urgent inquiries, call (561) 291-2681.

Founder-LedHIPAA-AwareServing Practices Nationwide