Hide the cursor over the video once the bottom bar auto-hides #3

Merged
kyuno merged 2 commits from fix/player-cursor-hide into master 2026-09-15 22:52:34 +02:00

2 commits

Author SHA1 Message Date
a01e0fa86f Merge branch 'master' into fix/player-cursor-hide
Some checks failed
Publier l'image Docker / test (pull_request) Failing after 7s
Publier l'image Docker / publish (pull_request) Has been skipped
2026-09-15 22:52:20 +02:00
26d32632c7 Hide the cursor over the video once the bottom bar auto-hides
Some checks failed
Publier l'image Docker / test (pull_request) Failing after 15s
Publier l'image Docker / publish (pull_request) Has been skipped
Asked for directly: the auto-hide behavior itself (bottom bar collapses
to just its seek line after a stretch of no activity) already shipped
earlier - a mouse cursor left sitting over the video afterward is the
same kind of clutter that was the point of hiding in the first place.

.playerWrap now gets a .cursorHidden class alongside #bottomBar's own
.minimal, toggled at the exact same two call sites
(scheduleControlsHide/showControls) so the two states can never drift
out of sync with each other. cursor: none on that class does the rest -
no new listener needed, since playerWrap's own pointermove/pointerdown
already call showControls() on any mouse activity, which is exactly
when the cursor should reappear too.

Verified: typecheck + build (client). Confirmed the compiled bundle
carries both the classList calls and the CSS rule. Not verified in an
actual running player - no Emby login reachable from this sandbox to
open a real video party and let the auto-hide timer elapse.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-15 22:50:08 +02:00