# Dragging Movements: Offer a Click Alternative

Source: https://allyway.ai/glossary/dragging-movements

Dragging Movements is WCAG success criterion 2.5.7. All functionality that uses a dragging movement for operation can be achieved by a single pointer without dragging, unless dragging is essential or the browser provides it.

Dragging movements are actions where you press on an item, hold it and move the pointer to a new position before letting go – drag and drop in a sortable list, moving a slider handle, panning a map. WCAG 2.2 requires that each of these actions also works with simple clicks or taps. Some people cannot hold a button down and move precisely at the same time.

## What it means

[WCAG 2.5.7 Dragging Movements](https://www.w3.org/WAI/WCAG22/Understanding/dragging-movements.html) is a Level AA criterion, new in [WCAG 2.2](https://allyway.ai/regulations/wcag-2-2): all functionality that uses a dragging movement for operation can be achieved by a single pointer without dragging, unless dragging is essential or the functionality is determined by the user agent and not modified by the author.

It applies to web content that interprets pointer actions. Browser scrolling and pull-to-refresh are out of scope – but if your page suppresses them or builds its own scrolling, it is in scope.

| Component | Single-pointer alternative W3C describes |
|---|---|
| Sortable list | Buttons next to each item to move it up or down |
| Slider | Click or tap any point of the track to set the value |
| Map | Up, down, left and right buttons to move the view |
| Kanban board | Select a card with one tap or click, then use an arrow button or choose the target column |

W3C names who benefits: people who have difficulty dragging, including users of trackballs, head pointers, eye-gaze systems and speech-controlled mouse emulators.

> **Warning:** > **Keyboard support alone does not pass 2.5.7**
> W3C states that keyboard equivalence for a dragging operation does not automatically meet this criterion. [Keyboard navigation](https://allyway.ai/glossary/keyboard-navigation) (2.1.1) and 2.5.7 are evaluated separately – you need controls people can click or tap as well. The alternative also must not be a swipe or other path-based gesture; those are covered by 2.5.1 [Pointer Gestures](https://allyway.ai/glossary/pointer-gestures).

## Examples

```html title="Example"
<!-- Sortable list: dragging still works, but each item also has buttons -->
<ol class="sortable">
  <li>
    Homepage banner
    <button type="button" aria-label="Move Homepage banner up">▲</button>
    <button type="button" aria-label="Move Homepage banner down">▼</button>
  </li>
  <li>
    Newsletter sign-up
    <button type="button" aria-label="Move Newsletter sign-up up">▲</button>
    <button type="button" aria-label="Move Newsletter sign-up down">▼</button>
  </li>
</ol>

<!-- Slider: in common browsers a click on the track of a native range input sets the value -->
<label for="budget">Budget</label>
<input id="budget" type="range" min="0" max="1000" step="50">
```

In common browsers the native `<input type="range">` lets people click the track, so it already offers a single-pointer way to set the value. Custom sliders built from `div`s must add this themselves – or provide plus and minus buttons or a number field.

**Do:** Do

Add move buttons to sortable lists, let people click the slider track, give maps zoom and arrow buttons, allow "select, then place" on boards and in file uploads, and make every extra control at least the minimum [target size](https://allyway.ai/glossary/target-size).

**Don't:** Don't

Make drag and drop the only way to reorder, upload or assign items, build sliders that only react to dragging the handle, or replace dragging with a swipe gesture.

## How to check dragging movements



## Questions

Q: Is drag and drop allowed under WCAG 2.2?
A: Yes. Dragging can stay. WCAG 2.5.7 only requires that the same result can also be reached with a single pointer without dragging, such as clicks or taps on buttons.

Q: Does keyboard support meet 2.5.7?
A: No. W3C says keyboard equivalence does not automatically meet 2.5.7. People who use a pointer but cannot drag need controls they can click or tap.

Q: Do sliders fail dragging movements?
A: Not if they offer a click alternative. Letting users click any point on the track, or adding plus and minus buttons or a number field, meets the criterion. In common browsers the native range input supports track clicks.

Q: When is dragging essential?
A: Rarely. WCAG calls something essential only if removing it would fundamentally change the information or functionality and it cannot be achieved in another conforming way. Reordering, uploading or moving a map view can all be done with clicks, so they are not essential.
