这是一个创建于 3533 天前的主题,其中的信息可能已经有所发展或是发生改变。
RT.
比如写轮播想检测用户手指划过的速度.和运动轨迹.
有没有现成的轮子可以检测.
没有的话可以......
5 条回复 • 2015-06-12 19:13:37 +08:00
![andy12530](https://cdn.v2ex.com/avatar/81e4/fe93/12567_normal.png?m=1710745879) |
|
1
andy12530 2015-06-12 16:32:12 +08:00
自己在touchmove事件里面计算,几行代码。
|
![lvfujun](https://cdn.v2ex.com/avatar/5e73/c067/84598_normal.png?m=1422702188) |
|
2
lvfujun 2015-06-12 17:30:33 +08:00
|
![iwege](https://cdn.v2ex.com/avatar/d5ab/8dc7/9000_normal.png?m=1335198643) |
|
3
iwege 2015-06-12 17:37:08 +08:00
hammer.js 在手势里面有代码,原来有配置是说用户速度到什么速度才触发swipe事件。
|