v153 · scroll-axis-lock

Recording a real gesture

Axis locking is a decision the compositor makes about your gesture, and it leaves a signature: a run of scroll events where one axis moves and the other is exactly zero. Scroll either pane diagonally and the recorder will tell you whether that happened.

Scroll a pane diagonally

Drag with a touchscreen, or two-finger swipe on a trackpad, starting diagonally. Both panes record every scroll event they receive.

scroll-axis-lock: auto

Nothing recorded yet.

scroll-axis-lock: none

Nothing recorded yet.

Scroll a pane, or press the button.

The programmatic button is a control, not a demonstration: it moves both axes with scrollBy, which never goes near the gesture pipeline and therefore can never be locked. If it produced a locked-looking recording, the recorder would be measuring something other than axis locking — so it is here to prove the opposite.

The events, one row each

Most recent scroll events
pane#ΔxΔylefttopshape
Nothing recorded yet.

see also