Answer the question
In order to leave comments, you need to log in
How to fix "sticky-top" on mobile devices?
Friends, I'm using sticky-top for the navigation bar, everything is fine, but the dropdown menu is quite large, + has a large menu dropdown. On desktop, everything is fire, but on mobile, when you open the menu, until you scroll to the end of the page, the drop-down menu does not scroll.
Tell me how to block the page scroll when opening the menu? Well, that is, to immediately scroll the navigation bar, and not first the page scrolls to the end, and only then the navigation bar.
Answer the question
In order to leave comments, you need to log in
When opening the menu, add a class for body with overflow: hidden;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question