fix: cancel auto-skip timer on user interaction

close #398
This commit is contained in:
edde746
2026-02-08 08:55:56 +01:00
parent 7660178b2e
commit 93e83adbc8
@@ -663,6 +663,9 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
// Keep the overlay visible while the user is moving the pointer
_restartHideTimerIfPlaying();
// Cancel auto-skip when user moves pointer over the player
_cancelAutoSkipTimer();
}
void _toggleControls() {
@@ -671,10 +674,10 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
});
// Notify parent of visibility change (for popup positioning)
widget.controlsVisible?.value = _showControls;
// Cancel auto-skip on any tap, not just when controls become visible
_cancelAutoSkipTimer();
if (_showControls) {
_startHideTimer();
// Cancel auto-skip when user manually shows controls
_cancelAutoSkipTimer();
}
// On macOS, hide/show traffic lights with controls