Swipe event Bugs
I'm using a swipe event to browse through some music files..
But if I swipe the screen it skips about 10 files each swipe while i want it to swipe only one file.
If i use alert(e.direction) it get only fired once, but when i remove the alert it gets fired for as long as i swipe..
Which means that everything will get slow as hell.. I tried using a 'flag' but that's not succesfull either..
Thanks!
1 Answer
-
Accepted Answer
try something like this:
onswipe set the flag swiped=e.direction; ontouchend if ( swiped ) { do stuff with the direction; swiped = false; }