How to prevent app running in phone-gap from scrolling vertically?

后端 未结 14 1790
伪装坚强ぢ
伪装坚强ぢ 2020-12-22 17:42

I\'m trying out phone gap and I want my application to not scroll up and down when the user drags their finger across the screen. This is my code. Can anyone tell me why it\

相关标签:
14条回答
  • 2020-12-22 18:25

    if you're using Cordova 2.6.0+ find config.xml, just add/modify this line:

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

    0 讨论(0)
  • 2020-12-22 18:25

    In config.xml of your project, under preferences for iOS set DisallowOverscroll to true. By default it is false which makes whole view to scroll along with inner elements of the view.

    <preference name="DisallowOverscroll" value="true" />
    
    0 讨论(0)
提交回复
热议问题