简体   繁体   English

关于 iPad 的 iscroll.js 问题

[英]Question on iscroll.js for iPad

How do I customized iscroll.js to have 2-finger scrolling.如何自定义 iscroll.js 以进行两指滚动。 Below is the URL for the JS library;下面是JS库的URL; http://cubiq.org/iscroll-4 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..我想模拟 2 指的相同滚动(就像 1 指一样)......在我的情况下,1 指的原因是用于拖动动作..

You can't do that.你不能那样做。 iScroll 4 is designed to scroll content on touchstart (1 finger triggers it). iScroll 4 设计用于在 touchstart 上滚动内容(一根手指触发它)。

If you want to scroll with 2 fingers, do not use iScroll...如果您想用 2 个手指滚动,请不要使用 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...检查iScroll 4的代码后,无法用2指触发滚动,因为它是用来放大/缩小的......

You can use native scroll to handle with what you want...您可以使用本机滚动来处理您想要的...

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

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