How to disable vertical bounce/scroll on iPhone in a mobile web application

前端 未结 2 1508
刺人心
刺人心 2020-12-17 06:14

As the title says, i need to disable vertical bounce on iphone on my mobile web form application. Ive tried alot of different things, but most of them disables my form or ho

相关标签:
2条回答
  • 2020-12-17 06:44

    I found this answer : https://stackoverflow.com/a/20477023/2525304

    They are basically detecting when the user is reaching the top/bottom of the page and then catch the scrolling event with event.stopPropagation(); to prevent any more scrolling.

    0 讨论(0)
  • 2020-12-17 06:47

    use this view port specify your initial zoom level and maintain minimum and maximum zoom level

    <meta id="viewport" name="viewport" content ="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
    0 讨论(0)
提交回复
热议问题