aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lightbox-scroll-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-11 22:47:47 -0700
committerAdam Soltys <[email protected]>2026-10-11 22:47:47 -0700
commit6eda01863920ae45d56a65563a7f956a429fced8 (patch)
tree5e01151020f152cb6131672ea1983fa26412b972 /tools/lightbox-scroll-test.js
parent880abf73720acc13e07242568d56c14bca247c5e (diff)
downloadcoinosv3-6eda01863920ae45d56a65563a7f956a429fced8.tar.gz
coinosv3-6eda01863920ae45d56a65563a7f956a429fced8.zip
Feed: a picture opens in the media pager, with the feed's other pictures a swipe away. Tapping a picture in a feed row used to open it alone (the lightbox); it now opens the media grid's pager on that picture, over the feed's pictures in the feed's own order — every picture of a post before the next post's (a repost's inner post, the feed's moderation) — so a swipe up or down, or any arrow key (up/down as before, now left/right too), steps to the next or previous one. A tap on the picture that opened it still closes it, as a full-screen picture always has; once the reader has moved on, the first tap shows the post's details and actions, and the next (or Escape, or the ×) closes the pager with the feed landed on that post (glideToPost, once the pop has brought the feed back). The pager's pictures pinch to zoom (attachZoom, now exported, without its wheel — the wheel is the pager's; at 1× one finger is the pager's swipe). Pictures in threads, profiles and chats still open alone. tools/feed-picture-pager-test.js; image-tap-test and lightbox-scroll-test accept the pager as the full-screen picture.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'tools/lightbox-scroll-test.js')
-rw-r--r--tools/lightbox-scroll-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lightbox-scroll-test.js b/tools/lightbox-scroll-test.js
index 1eb019f..be03e9b 100644
--- a/tools/lightbox-scroll-test.js
+++ b/tools/lightbox-scroll-test.js
@@ -82,10 +82,10 @@ try {
console.log('\n[a picture, opened and closed]');
const y2 = await showPost('picture post 17'); await sleep(400);
check('the reader is somewhere else now', Math.abs(y2 - y1) > 400, `${y1} → ${y2}`);
- check('a picture opens full screen', await clickPicture() && await waitFor(() => !!document.querySelector('.lightbox'), null, 4000));
+ check('a picture opens full screen', await clickPicture() && await waitFor(() => !!document.querySelector('.lightbox, .media-pager'), null, 4000));
const under = await scrollY();
await page.keyboard.press('Escape'); await sleep(900);
- check('the picture closed', await page.evaluate(() => !document.querySelector('.lightbox')));
+ check('the picture closed', await page.evaluate(() => !document.querySelector('.lightbox, .media-pager')));
const y3 = await scrollY();
check('the feed is where it was, not jumped to the stale place or the top', Math.abs(y3 - y2) <= 2, `before ${y2}, under ${under}, after ${y3}, stale ${y1}`);