From d2c1384a92e10a3d048a646554ea8fedbfbe6ba5 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Tue, 17 Jun 2025 09:47:40 +0200 Subject: [PATCH] Enhance cursor visibility in video overlay during inactivity --- static/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/index.html b/static/index.html index efb3636..8791786 100644 --- a/static/index.html +++ b/static/index.html @@ -158,9 +158,11 @@ let inactivityTimer; function showButtonAndResetTimer() { backButton.removeClass('button-hidden'); + overlayContainer.css('cursor', 'default'); // Show cursor clearTimeout(inactivityTimer); inactivityTimer = setTimeout(function() { backButton.addClass('button-hidden'); + overlayContainer.css('cursor', 'none'); // Hide cursor }, 3000); // 3 seconds } @@ -186,6 +188,9 @@ videoElement.pause(); } clearTimeout(inactivityTimer); // Clear inactivity timer + if (overlayContainer) { // Ensure overlayContainer exists before trying to modify it + overlayContainer.css('cursor', 'default'); // Always reset cursor on exit + } // Exit fullscreen if active if (document.fullscreenElement || document.webkitIsFullScreen || document.mozFullScreen || document.msFullscreenElement) { if (document.exitFullscreen) {