Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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..


— asked August 5th 2010 by J T
  • iphone
  • mobile
  • swipe
  • view

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;
    — answered August 5th 2010 by Dan Tamas
    1 Comment
    • Thanks man, this was it! :-)

      — commented August 6th 2010 by J T
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.