feat: wheel and trackpad horizontal seek in the score #6
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/wheel-seek"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The wheel was previously unused over the score — setupScrollDisabling()
only cancels the container native scroll, since the score is positioned
by transform on #scrollStage rather than scrollLeft.
Wheel seek lives in transportTouch.js so it shares the drag-to-scrub
lifecycle: it pauses playback, sets the seek flags, throttles WS jump
messages, and ends via finishSeeking(). Whichever of deltaX/deltaY
dominates drives the scrub, so trackpad swipes, plain wheels and
shift+wheel all work; deltaMode is normalised to pixels. Since wheel has
no end event, 140ms of silence closes the gesture.
Modifier combos (ctrl/meta/alt) pass through to the browser, and edit
modes, drawing mode and locked transport are respected.
Adds a wheelSeekSensitivity preference (default 1) next to the existing
touch-seek settings.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com