diff options
| author | Adam Soltys <[email protected]> | 2026-10-13 06:42:20 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-13 06:42:20 +0000 |
| commit | 02ba46a2405bcf89312636f5340507b1d6d57b3b (patch) | |
| tree | bf4331925cb2082ef6a04c719721fb68f54a0d12 /android/app/src/webview/java | |
| parent | 4db2b77bd249e365fc4a4f1ba22311feb60ac294 (diff) | |
| download | coinosv3-02ba46a2405bcf89312636f5340507b1d6d57b3b.tar.gz coinosv3-02ba46a2405bcf89312636f5340507b1d6d57b3b.zip | |
Media pager: a tap is a tap even if the finger moves a little, and a swipe has to mean it. Adam tapped a clip to pause it and it was taken for a swipe: the slides scrolled natively, and the browser takes a touch that moves a few pixels for a scroll — no click, so no pause — while a quick one flung the pager on to the next slide (reproduced: an 18px drift paged on). Holding the scroll back after the fact doesn't work (the fling comes after touchend), and stopping the first move stops the browser scrolling for the whole touch, so the pager now judges and moves touches itself: the slides hold still until a touch has gone 30px — short of that it's a tap, done here when the browser sent no click (a button under it is pressed), and a later click isn't counted twice — and past it they follow the finger the way it set off (up/down post to post, across within a post, snap off while dragging), going on to the next on letting go if the finger went a fifth of the screen or flicked (0.3 px/ms over at least 48px), else back. Touches on the seek bar, in an opened caption, or on a zoomed-in picture are left to those. And the arrow keys go to the slide or post next to the one on screen, by name, not "a screen further" — from a scroll still settling that landed short (quote-pager-test failed two runs in three). tools/pager-tap-slop-test.js (drifts of 18px and 14px and a quick 25px flick: taps — paused, played, not paged; a 320px swipe up and a 300px swipe down page; a slow 70px drag springs back; a quick 80px flick pages).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KPw21NEpWeTGu6swVASmBt
Diffstat (limited to 'android/app/src/webview/java')
0 files changed, 0 insertions, 0 deletions
