Phonegap and Android Scrolling Issue

2019-03-05 04:20发布

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.

2条回答
别忘想泡老子
2楼-- · 2019-03-05 04:58

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.

查看更多
狗以群分
3楼-- · 2019-03-05 04:59

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

查看更多
登录 后发表回答