Phonegap and Android Scrolling Issue

二次信任 提交于 2019-12-20 06:16:55

问题


I am deploying application with Phonegap for Android and iPhone.

I am using style -> Overflow : scroll for Scrolling contents.

Its working properly in iPhone Application. Even working on Android Applications for version 3.0 and later versions.

But Facing Issue : The entire page scrolls up/down instead of the specific scroller of data in older versions like 2.1 & 2.2

Any Solution for this ?

Thanks in advance.


回答1:


I think you can use iScroll for this purpose,for getting this script you can look at this link. iScroll4 supports iPhone/Ipod touch (>=3.1.1) iPad ( >=3.2) , Android ( >=1.6) , Desktop Webkit, Firefox, Opera desktop/mobile etc.




回答2:


I believe Android and iPhone devices in older versions did not support Overflow at all, or in limited instances, so the only way to overcome this would be to involve some JavaScript, just as jQuery Mobile did in their previous versions

also, maybe check this: How much support is there for -webkit-overflow-scrolling:touch



来源:https://stackoverflow.com/questions/12089096/phonegap-and-android-scrolling-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!