fix(web-ui): fade MediaPlayer controls when the pointer is over the picture

Pointer movement and presses now count as activity anywhere inside the
player's box. The picture can sit on a canvas stacked above the frame,
where the pointer never reaches the frame's own elements, so the
controls did not fade back in. The autoHideControls doc comment now
describes the real default.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Haiku 5.5 committed 2026-11-20 21:24:40 +01:00
1 parent a8dce33dc5
commit 76bf5916fe
3 files changed
+175 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@gabriel20xx/web-ui": patch
---
Fix `MediaPlayer` controls not fading away during playback when the pointer stays still. Pointer movement now counts as activity anywhere over the player, including over a picture drawn on a canvas stacked above the frame, so the controls fade after a few seconds and come back when the pointer moves over the player again. The `autoHideControls` doc comment now describes its real behavior: `true` (the default) fades the controls, `false` keeps them visible.