Stopping overscroll / bounce in Phonegap IOS

前端 未结 20 1589
青春惊慌失措
青春惊慌失措 2020-12-07 18:53

I am using the latest version of Phonegap on IOS (ipad) and I can\'t seem to disable the vertical overscroll/bounce on the whole app. I don\'t mind it on inner elements but

20条回答
  •  情深已故
    2020-12-07 19:16

    DisallowOverscroll does not work for me.

    Solution is to ensure that there is nowhere to scroll.

    For example, in my case it was div wider (it can be higher) than the body like below:

    
      
    something

    Now, above div is 5% bigger than body that cause scrolling. Set width to 90% fixes the issue.

提交回复
热议问题