简体   繁体   English

如何通过PhoneGap处理滚动?

[英]How is scrolling handled by PhoneGap?

How is scrolling implemented by PhoneGap? 如何通过PhoneGap实现滚动? Is scrolling done by JavaScript plug-in like iScroll, is it done by a native scroll view, or in an other way? 是否像iScroll这样的JavaScript插件完成滚动,是通过本机滚动视图还是以其他方式完成?

The reason I ask, is because I am new to PhoneGap, and the biggest reason for chossing it is if it handles scrolling in a good way. 我之所以这么说,是因为我是PhoneGap的新手,而选择它的最大理由是它是否能以良好的方式处理滚动。

Since PhoneGap is a wrapper for deployment, not presentation, scrolling is dependent on the chrome from the browser on the platform you deploy to. 由于PhoneGap是部署的包装器,而不是表示,因此滚动取决于您部署到的平台上的浏览器的chrome。 If a device's native browser scrolling is an issue for you (like it sounds like it is on iOS), it will still be an issue in PhoneGap. 如果设备的本机浏览器滚动对您来说是一个问题(就像它听起来像是在iOS上),它仍然是PhoneGap中的一个问题。 Consider using a presentation library, like Sencha Touch, jQMobile or iScroll, to fix the issue on a specific deployment platform. 考虑使用演示库(如Sencha Touch,jQMobile或iScroll)来修复特定部署平台上的问题。

滚动在phonegap不会达到原生的水平..但iscroll带来它非常接近。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM