关于 iPad 版 iscroll.js 的问题

发布于 2024-11-25 18:40:35 字数 191 浏览 3 评论 0原文

如何自定义 iscroll.js 以实现 2 指滚动。下面是 JS 库的 URL; http://cubiq.org/iscroll-4

我想模拟 2 指的相同滚动(正如一个手指所获得的那样)...在我的例子中,1 指的原因用于拖动动作..

How do I customized iscroll.js to have 2-finger scrolling. Below is the URL for the JS library;
http://cubiq.org/iscroll-4

I want to simulate the same scrolling for 2-finger (as one gets for 1-finger)...Reason being 1-finger is used for drag action in my case..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

摇划花蜜的午后 2024-12-02 18:40:35

你不能那样做。 iScroll 4 设计用于在 touchstart 上滚动内容(1 个手指触发它)。

如果你想用2个手指滚动,不要使用iScroll...

检查iScroll 4的代码后,无法用2个手指触发滚动,因为它是用来放大/缩小的...

您可以使用原生滚动处理你想要的事情...

You can't do that. iScroll 4 is designed to scroll content on touchstart (1 finger triggers it).

If you want to scroll with 2 fingers, do not use iScroll...

After checking the code of iScroll 4, it is not possible to trigger scroll with 2fingers as it is used to zoom in/out...

You can use native scroll to handle with what you want...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文