1

Im trying to do a simple swipe ( do some action when it occur ), and nothing seems to work.

 function someFunc(){
         alert('do swipe');
    } 

<div hm-swipe="someFunc()">

</div>

If i change to hm-tap all seems to work properly, what can be the cause of this?

1
  • I also I am having this issue. I cannot get the hm-swipe-* to work but hm-tap does work.
    – Alex White
    Commented Jul 27, 2015 at 21:43

1 Answer 1

1

For swipe you need to drag it quickly, otherwise it will be a dragged event.

see here the demo.

1
  • The screen is small, and i need a swipe up gesture to do something, right now it doesnt handle itself very well, perhaps the screen size? or changing some thing in the options? Commented Apr 7, 2015 at 9:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.