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 on iPad

Has anyone noticed that 'swipe' on iPad (and perhaps also on iPhone) doesn't work good? Sometimes event is just not fired, it has nothing to do with speed or duration of swipe.

This behavior is much more visible (and disturbing) on device, in simulator it swipes smoothly most of the times (but sometimes it also doesn't swipe in simulator).

Any ideas how to overcome this?

— asked September 28th 2010 by Marcin Jagodzinski
  • ios
  • ipad
  • swipe
1 Comment
  • really don't know what else can we do to turn Appcellerator devs attention to this bug…

    — commented October 17th 2010 by Marcin Jagodzinski

5 Answers

  • I have a bug that with swipe in landscape you must slide up and down.
    and after 3 swipes it crashes.

    I dont have the chance to run on iPad yet, little bit further in development I will get a dev license

    — answered September 29th 2010 by Patrick van Zadel
    permalink
    0 Comments
  • I have had similar situation. Now it works OK (left-right), but as I wrote: not always.

    — answered September 29th 2010 by Marcin Jagodzinski
    permalink
    0 Comments
  • Yep! Same problem here!

    Works perfectly in the simulator and very badly on the phone (Tried 3G, 3GS & 4).

    One of the problems in my case was the fact the the swipe event get's triggered a gazillion times and not just once - during ONE swipe. The solution for this is simple, but the lack of triggering the swipe event consistently is not…

    Event the event example in KS has this same problem. The swipe event doesn't trigger consistently.

    /J

    — answered September 29th 2010 by Joacim Boive
    permalink
    1 Comment
    • It's not working perfectly in the simulator, just working better than on device.

      Do you have any idea how to turn Titanium developers attention to this bug? Ofc I can try to implement swipe using touchstart/touchend…

      — commented September 29th 2010 by Marcin Jagodzinski
  • Last time i checked, swipe is not reliable and one should avoid using it. Often, it triggers at least twice or three times as much.

    I use touchstart and touchend to determine directions instead, yes, a ton more codes but works flawlessly.

    — answered September 30th 2010 by Daniel Lim
    permalink
    1 Comment
    • Hi Daniel, do you mind sharing some coded of you implementation. I wanted to add the swipe event on my App, but so far no very successfully . Thanks

      — commented December 28th 2010 by Antonio Silveira
  • Filled ticket: https://appcelerator.lighthouseapp.com/projects/32238/tickets/1960-swipe-event-not-fired-on-ipad

    — answered October 1st 2010 by Marcin Jagodzinski
    permalink
    0 Comments
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.