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) {