Fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-05-09 20:10:15 +00:00
parent 7d54463e2e
commit 4d87269f5b
1 changed files with 3 additions and 3 deletions

View File

@ -41,15 +41,15 @@ window.addEventListener('scroll', () => {
opacity = Math.max(0, Math.min(1, opacity)); // begränsa mellan 0 och 1
// Tillämpa opacitet
header.style.opacity = opacity;
//header.style.opacity = opacity;
sidebar.style.opacity = opacity;
// Hantera klickbarhet så man inte klickar på osynlig meny
if (opacity < 0.05) {
header.style.pointerEvents = "none";
// header.style.pointerEvents = "none";
sidebar.style.pointerEvents = "none";
} else {
header.style.pointerEvents = "auto";
// header.style.pointerEvents = "auto";
sidebar.style.pointerEvents = "auto";
}
});