How to stop your website from overscrolling

· 1 min ·

Have you ever been annoyed by the fact that your website scrolls up and down beyond the viewport and bounces back? Put the following code in your stylesheet and you‘ll be satisfied.

:root {
    overscroll-behavior: none;

But be sure you have no pull-to-refresh action.

Reply via e-mail

Back to top