Only swipeone is working with jGestures

前端 未结 7 2425
抹茶落季
抹茶落季 2021-02-10 09:56

I\'m trying to implement touch evens with jGestures. swipeone works fine but anything else (swipeleft, swiperight etc) is not firing.

7条回答
  •  臣服心动
    2021-02-10 10:15

    This is already answered here:

    stackoverflow about jGesture swipe events

    The trick is:

    … .bind('swipeone swiperight', … 
    

    You have to bind it to both events. only swiperight won't work. took me 3 hrs to figure that out :D

    Best, Rico

提交回复
热议问题