I'm building a phonegap(cordova) application and it is working great for android, but there is some scrolling issue with iOS build i-e i cannot scroll pages from anywhere on the screen except the middle-right and middle-left of the screen and that area is very less, i want to scroll by swiping anywhere on the screen just like it works in Android.

我正在构建一个phonegap(cordova)应用程序,它适用于Android,但iOS构建存在一些滚动问题,即除了屏幕的中右和左中,我无法从屏幕上的任何位置滚动页面。该区域非常少,我想通过在屏幕上的任何位置滚动来滚动,就像在Android中一样。

Anyone else faces the same issue, share your knowledge and experience.

其他任何人都面临同样的问题,分享您的知识和经验。

1 个解决方案

#1


1

Although without a code sample it is difficult to advice.. I had similar experiences in ios phonegap development and you need to be sure that the css overflow attribute is correctly setup for all elements.

虽然没有代码示例但很难建议..我在ios phonegap开发中有类似的经验,你需要确保为所有元素正确设置了css overflow属性。

One major 'trick' that you need is to add

你需要的一个主要“技巧”是添加

-webkit-overflow-scrolling: touch; 

To the container you like to scroll. See this page for info about the css property.

到您想要滚动的容器。有关css属性的信息,请参阅此页面。

更多相关文章

  1. Google地图信息窗口左箭头,右箭头传递TypeError:无法读取未定义的
  2. 3.29 学前端 jquery之操作元素之属性操作
  3. 更改粘性标题航点或偏移的位置。
  4. 获取复选框的文本属性
  5. 将JSON结果返回给ajax请求的MVC ErrorHandling属性仅适用于local
  6. JQuery属性与样式――.val()和增加样式.addClass()
  7. 关于jQuery获取html标签自定义属性值或data值
  8. jquery为属性过滤器动态添加值?
  9. 在某个点停止固定位置滚动?

随机推荐

  1. android adb 使用初阶
  2. 百度地图android客户端的AndroidMainfest
  3. android最佳实践(四)
  4. Android中数据存储的5种方法
  5. Android 面试题总结之Android 基础(六)
  6. Android负责人:完全开放和一致体验是挑战
  7. Android(安卓)TextView 文字空白解决方案
  8. Android 指纹启动流程
  9. android那些事——android的成长
  10. Android设置铃声分析