overscroll-behavior: Hentikan Scroll Bocor

The cart on the workshop’s catalogue: scroll its list to the end and keep pushing, and Mr. Harun’s tapes show whether the catalogue behind moves along, with…

Why it matters

The "page scrolls along" bug makes modals, drawers, chats and bottom sheets feel cheap; on a phone it can even trigger pull-to-refresh by accident. One line of overscroll-behavior: contain on the box that scrolls closes it, without locking the page’s scrolling.

The key idea

A scroll that runs out is passed on to the next scroll container

Common mistakes

Try it in this playground