Open kuroda opened 5 months ago
The general technique used to prevent scrolling with the mouse wheel over an open hamburger menu is as follows:
let toggleIsFixed = function(active) { const htmlElem = document.getElementsByTagName("html").item(0); if (active) htmlElem.classList.add("is-fixed") else htmlElem.classList.remove("is-fixed"); }
html.is-fixed, html.is-fixed body { height: 100%; overflow: hidden; }
Consider using the Event.stopPropagation() method.
Introduce tg:stop="mousewheel".
tg:stop="mousewheel"
The general technique used to prevent scrolling with the mouse wheel over an open hamburger menu is as follows:
Consider using the Event.stopPropagation() method.