lvfujun
V2EX  ›  问与答

前端有没有测试 touch 滑动速度的框架?

  •  
  •   lvfujun · Jun 12, 2015 · 2736 views
    This topic created in 4173 days ago, the information mentioned may be changed or developed.
    RT.
    比如写轮播想检测用户手指划过的速度.和运动轨迹.
    有没有现成的轮子可以检测.
    没有的话可以......
    5 replies  •  2015-06-12 19:13:37 +08:00
    andy12530
    andy12530
    Jun 12, 2015
    1
    自己在touchmove事件里面计算,几行代码。
    lvfujun
    lvfujun
    OP
    Jun 12, 2015
    2
    @andy12530 我打算造个轮子.
    iwege
    iwege
    Jun 12, 2015
    3
    hammer.js 在手势里面有代码,原来有配置是说用户速度到什么速度才触发swipe事件。
    andy12530
    andy12530
    Jun 12, 2015
    4
    @lvfujun 你想造干啥的轮子。
    滑动事件吗,这个轮子都已经一大堆了。
    lvfujun
    lvfujun
    OP
    Jun 12, 2015
    5
    @andy12530 就是滑动事件的轮子.如果有就算了.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:04 · PVG 05:04 · LAX 13:04 · JFK 16:04
    ♥ Do have faith in what you're doing.