aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-17 05:28:40 -0700
committerAdam Soltys <[email protected]>2026-10-17 05:28:40 -0700
commit5615d645875f80300ea813de266b292f02ccd93f (patch)
treea94e15bcf2e1cf0a237a41827dad0d8fb55b0713 /src/features
parent47dd7551df920600a63e08b3b15aeb4cd4d3406f (diff)
downloadcoinosv3-5615d645875f80300ea813de266b292f02ccd93f.tar.gz
coinosv3-5615d645875f80300ea813de266b292f02ccd93f.zip
The video pager shows no position counter until ten clips are ready, the same point it starts to fly.
Adam, 2026-10-17: "let's also not show the position/total counter until we have 10". The count is recomputed whenever a clip joins the carousel, so it appears as the tenth one does. Picture pagers and Data Saver are unchanged. tools/pager-ready-gate-test.js: with four clips ready the counter is hidden. pager-seek-hide and pager-swipe-fly pass. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013ZDf1cyCQLkfjftYhymZAg
Diffstat (limited to 'src/features')
-rw-r--r--src/features/messages.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/messages.js b/src/features/messages.js
index 654b6d5..1cdbf58 100644
--- a/src/features/messages.js
+++ b/src/features/messages.js
@@ -13220,6 +13220,9 @@ export function messagesFeature(ctx) {
}
const text = (index < 0 ? 0 : index + 1) + ' / ' + groups.length, el = pager.el.querySelector('.mp-position');
if (el.textContent !== text) el.textContent = text;
+ // a video pager shows no count until it can fly: ten clips ready (Adam,
+ // 2026-10-17: "let's also not show the position/total counter until we have 10")
+ pager.el.classList.toggle('few', !pagerCanFly());
}
function buildPager(want) {