DEV Community

Cover image for overscroll-behavior
Démontant
Démontant

Posted on

overscroll-behavior

overscroll-behavior, this CSS properties, allows you to define the scroll zone of your browser in other words to block so as not to scroll down indefinitely as in the image of the article.

I also use it for iframe with GuestOnline on iPhone and on macbook to avoid moving the window in all directions.
It's just a tip that can help you;)

html, body {
overscroll-behavior: none;
}

Source : https://developer.mozilla.org/fr/docs/Web/CSS/overscroll-behavior

Top comments (0)