I
I
Islam Ibakaev2021-03-02 17:16:41
JavaScript
Islam Ibakaev, 2021-03-02 17:16:41

Why does opening the mobile menu (slideout.js) reset the scrolling of the window at the time the menu was opened?

I am using slideout.js for a project . If you scroll the window and then open the mobile menu, the scrolling flies. As a result, you close the menu and find yourself at the top of the page.
Tell me what the problem is, please, if you have already encountered this behavior.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dymok, 2021-03-02
@devellopah

The problem is with these styles:

body, html {
    height: 100%;
    min-height: 100%;
}

Remove them and everything will work as it should.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question