Prevent full page scroll when no scrolling

Hello, I’d like to know if there’s any possibility of restricting the apps scrolling when there’s no scroll in the content.

I’m attaching a gif for you people to understand what I’m talking about.

Thanks for the help!!

PS: I’m running my with the app added to homescreen on ios

In config.xml:

<preference name="DisallowOverscroll" value="true" />

Hi shastox, thanks for your quick answer! I’m not using Cordova, any way to get a solution without it?

html,
body {
position: fixed;
}

Но, возможно, это вызовет где-то проблемы.

1 Like