diff options
| author | Adam Soltys <[email protected]> | 2026-10-14 22:04:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-14 22:04:35 -0700 |
| commit | 0355c21254d6d452fd4afbec28db3e124bc1d61a (patch) | |
| tree | b79a5b1c83850cd600d3bcd208eb3126dbdf0128 /src/i18n.js | |
| parent | c8b7eff398c5a6120434c9a362c3e20edd2d662e (diff) | |
| download | coinosv3-0355c21254d6d452fd4afbec28db3e124bc1d61a.tar.gz coinosv3-0355c21254d6d452fd4afbec28db3e124bc1d61a.zip | |
Media pager with a mouse: the wheel pages, ctrl+wheel zooms, arrows for the pointer. Adam reached for the scroll wheel in the pager on his laptop and nothing useful happened: a notch scrolled the snap container a hundred pixels and the glide's snap put it straight back (a headless probe of the live pager: scrollTop stays 0), so the arrow keys were the only desktop way through. Now a wheel notch is a step — down the next post, up the one before, a sideways notch (a trackpad's, or shift+wheel) along the post's pictures — with a 220 ms breath between steps so a spin of the wheel is a step or two, not five; a trackpad's run of small deltas is one step per run (its first 40 px, the rest until a pause is spent). Ctrl+wheel zooms the picture at the cursor, which is also what a trackpad's pinch arrives as in Chrome (attachZoom's new wheel: 'ctrl' mode, 0.004 per unit); while zoomed the plain wheel pans it, and at 1× it is the pager's again. And where there is a pointer to hover with (hover: hover and pointer: fine), arrows: up and down at the right edge, left and right when the post has a picture that way (has-left/has-right, set as the slide on screen changes), faint until the pointer is over the pager. The keys, the wheel and the arrows share one step (pagerStep). No mouse drag-flick: discrete steps suit a pager. tools/pager-wheel-test.js (CDP mouseWheel is always a 120-unit notch to Chrome, so a trackpad run is dispatched page-side; headless has no hovering pointer, so one is given with --blink-settings); feed-picture-pager and image-zoom tests pass.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J1Kon8bxJoHRpJdSzshCkp
Diffstat (limited to 'src/i18n.js')
| -rw-r--r-- | src/i18n.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i18n.js b/src/i18n.js index 82004a2..fd192a1 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -274,6 +274,10 @@ const STR = { pagerFetchingVideo: "Fetching the next video…", pagerFetchingPictures: "Fetching more pictures…", pagerCaughtUp: "That’s everything for now", + pagerPrevPost: 'Previous post', + pagerNextPost: 'Next post', + pagerPrevPic: 'Previous picture', + pagerNextPic: 'Next picture', videoNoPicture: "This browser can’t show this video’s picture", videoOpenFile: "Open the file", videoLargeTitle: "Videos", |
