You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an easy way to disable scrolling when fullscreen menu (hamburger icon) is clicked, and then re-enable scrolling once the same icon is clicked again (to close the menu)? Ideally I don't want to destroy it as I want the scrollbar to remain visible.
I have almost fixed my issue using the following code.
I have an open menu button and a close menu button, the only problem now is the second time the open menu button (#menu-toggle-open) is clicked, it destroys everything making the website just a white page. Do you know if there is a fix for this based on my code?
Ok Im a bit lost at this point, trying to fix a few different issues at once...
Ive created a codepen for you so you can see the setup. Fullscreen menu and smooth-scrollbar, trying to disable smooth-scrollbar when the menu is open and enable when its closed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there an easy way to disable scrolling when fullscreen menu (hamburger icon) is clicked, and then re-enable scrolling once the same icon is clicked again (to close the menu)? Ideally I don't want to destroy it as I want the scrollbar to remain visible.
Beta Was this translation helpful? Give feedback.
All reactions