N
N
netrox2018-03-08 20:29:34
JavaScript
netrox, 2018-03-08 20:29:34

How to block page scrolling when expanding responsive menu?

Due to an update to Google Chrome , scroll blocking in the standard Javascript way is no longer available. Is there an alternative way to implement this on the click event?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Kuklin, 2018-03-08
@netrox

Try this

window, body{
    overflow: hidden;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question