Fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7d54463e2e
commit
4d87269f5b
|
@ -41,15 +41,15 @@ window.addEventListener('scroll', () => {
|
||||||
opacity = Math.max(0, Math.min(1, opacity)); // begränsa mellan 0 och 1
|
opacity = Math.max(0, Math.min(1, opacity)); // begränsa mellan 0 och 1
|
||||||
|
|
||||||
// Tillämpa opacitet
|
// Tillämpa opacitet
|
||||||
header.style.opacity = opacity;
|
//header.style.opacity = opacity;
|
||||||
sidebar.style.opacity = opacity;
|
sidebar.style.opacity = opacity;
|
||||||
|
|
||||||
// Hantera klickbarhet så man inte klickar på osynlig meny
|
// Hantera klickbarhet så man inte klickar på osynlig meny
|
||||||
if (opacity < 0.05) {
|
if (opacity < 0.05) {
|
||||||
header.style.pointerEvents = "none";
|
// header.style.pointerEvents = "none";
|
||||||
sidebar.style.pointerEvents = "none";
|
sidebar.style.pointerEvents = "none";
|
||||||
} else {
|
} else {
|
||||||
header.style.pointerEvents = "auto";
|
// header.style.pointerEvents = "auto";
|
||||||
sidebar.style.pointerEvents = "auto";
|
sidebar.style.pointerEvents = "auto";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue