Checklist Guide

A Map or Slider on Your Contact Page That Works Without Dragging

Short answer

Anything on your contact page that needs a finger to be pressed and dragged, such as panning a map or sliding a picture row, also needs a way to do the same job with single taps or clicks. A pair of plus and minus buttons, or arrows, is enough.

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

When dragging is the only way in

A common contact page has an embedded map showing the office and, nearby, a row of photos that slides sideways. Both are built for dragging. A patient with a tremor, a head pointer, an eye-gaze tool or a trackball may not be able to press, hold and move at the same time, so the map stays stuck on the wrong street and the photo row never moves.

The W3C Dragging Movements criterion, which we read in full, was added in WCAG 2.2. Its goal is plain: do not rely on dragging for user actions, and offer a simple single-pointer alternative for anything that needs it.

What counts as an alternative

The W3C describes dragging as four separate steps: tap or click to start, press and hold, move the pointer, then release. Not everyone can do the middle two accurately. Its examples of alternatives include clicking or tapping anywhere on a slider track to move the thumb there, and a text box next to a slider where the person can type a value.

Two limits are worth knowing. First, keyboard support is not enough on its own, because a touchscreen user may not have a keyboard, so the alternative must work with a tap or click. Second, the alternative cannot rely only on swipes or flicks, since those are also path-based gestures.

Contact page elementA single-tap alternative
Embedded mapZoom in and out buttons, plus the written address with a Get directions link
Row of photos that slidesPrevious and Next arrow buttons
Price or distance sliderClick on the track, or a box to type a value
Reorderable listMove up and Move down buttons

What the criterion does not cover

Ordinary page scrolling is the browser's job and is outside the criterion, as is scrolling inside a box made with standard styling. It applies when your own code takes over scrolling or panning and handles the drag itself.

Test it in three minutes

  1. 1Open your contact page on a phone and find anything that moves when you drag it.
  2. 2Try to use each one with taps only, without pressing and moving.
  3. 3If the map cannot be zoomed or recentered with a tap, note it.
  4. 4Check that the address is also written as text beside the map.
  5. 5Note any row or slider that has no arrows.

For a map, the written address and a link that opens directions in the visitor's own map app are the most reliable fallback. Our guide to map embed and driving directions wording covers how to word that safely, and the guide to pausing carousels and sliders covers the related pause control. This is practical guidance, not legal advice, and it does not by itself make a page conform to any standard.

Frequently asked questions

Is a plus and minus button pair enough for a map?

Zoom buttons answer zooming. Panning to a different area is also a drag, so offer a way to recenter on the office, and show the written address with a directions link. For most contact pages the real need is finding the office, which the address and link already deliver.

Does keyboard support satisfy this?

Not on its own. The W3C says keyboard operation is a separate requirement, because people on touchscreens may not use a keyboard. The alternative has to work with single taps or clicks. Arrow keys can stay as an extra route alongside the buttons.

Can a swipe be the alternative to a drag?

No. A swipe or flick is itself a gesture that follows a path, so it fails for the same people. The W3C points to this overlap with its pointer gestures criterion. Use plain buttons or a tap on the track instead.

Does ordinary page scrolling count as dragging?

No. The W3C excludes scrolling and drag gestures provided by the browser itself, such as a swipe to scroll the page. The criterion applies when your own code replaces that behavior and handles the drag directly.

Should we just remove the map?

Not necessarily. A map is useful for finding an office. Keep it if it zooms with buttons, and always put the address in text too. If the map cannot be made operable by taps, a static image with the address and a directions link is a safe replacement.

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