1 decade ago
by nis1013
Hi we are panning to build a game that heavily depend on SWIPE events.
Is impact support to capture SWIPE events without any additional effort?
Thanks you in advance
I made a modified Jump N' Run demo that used JQuery swipe, but when I loaded it on the iPad, it didn't respond. It only worked with the mouse on a normal computer.
I had some success with iOS Impact using touch commands, but I never tried swipe, and I was hoping to get it working in the browser without having to use a native app.
Let us know if you find a working solution.
Impact doesn't have native support for touch gestures.
Swipe seems like a pretty easy one though... just track mouse movements and see if they are progressing one way or another. Moving far enough, fast enough would trigger a swipe gesture.
1 decade ago
by Jerczu
Yeah what Graphikos said on touch grab touch position (start timer optionally) on touchmove register touch position and finally on touch end check if touch initial is less or more and that is it .
I know this is an old thread but in case it helps anyone:
https://gist.github.com/steerapi/8108367
Page 1 of 1
« first
« previous
next ›
last »