mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:47:22 -06:00
Wayland compositors leave momentum to the client: libinput reports the swipe as pixel deltas and the lift as an axis stop (TouchPhase::End), and the page view stopped dead there (#1708). It now measures the gesture's speed over its last 0.1 s and keeps scrolling through the #759 1:1 path, slowing with a 0.35 s time constant. - No glide for a slow drag, a pause before lifting, zoom or Shift swipes, single-page paging, or with Animation effects off. - Any wheel input, click, key, zoom, dialog or the document's edge ends it. - Off on macOS (it sends its own momentum) and the web; Windows and X11 report no touch phases through winit, so nothing starts a glide there. Not yet: fingers resting on the touchpad don't catch the glide; that needs Wayland hold gestures, which the vendored winit doesn't bind. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>