fix(web): restore vertical touch scrolling during selection (axis-locked sweep) #1432
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mobile-scroll-in-selection"
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?
Problem
On mobile, once a selection was active on a media wall (person page/Score wall, day wall, album detail, homepage timeline), every tile ran
touch-action: none(MediaGrid.svelte,class:touch-none={sweepAvailable}). The browser therefore never scrolled from a touch on the grid: vertical drags fed the sweep machinery instead of the page, so users could not scroll to look at more photos while selecting.Fix
Standard photo-app gesture arbitration on touch:
touch-action: pan-ywhile a sweep is available — the browser owns vertical drags and the page scrolls normally.sweepAxisRejectedand never arms; horizontal-dominant arms the sweep as before. The latch holds for the whole contact (no re-arm if the finger later drifts horizontal).pointercancel, which the existing cancelled-sweep path already handles (flush, no click suppression).Tap-to-toggle and long-press-to-enter-selection are untouched; the selection/tap contract tests keep passing.
Validation
npm run check: 0 errors (warnings pre-existing, outside the change)npm run test:unit: 45 files, 370 tests passedtimeline scroll stability › keeps the viewport pinned to the jumped day while hydration settles(mobile). Verified pre-existing: reproduces identically on a cleanorigin/maincheckout without this change (flaky scroll-stability family, cf. ISSUE-148 pattern).