Titanium Community Questions & Answer Archive

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

Holding down finger (touch start and holding)

Is there any way to find out if the person is holding down the button?

There is touchstart & touchmove but I cant find the right combo to do this.

EXP: while holding down the button a action will happen (realtime)?

— asked June 19th 2010 by scott castov
  • buttons
  • down
  • holding
  • iphone
  • touchstart
  • views
0 Comments

2 Answers

  • Start a timer when the touchstart event triggers, and if touchend does not appear in X time ( you decide how much ) start your action.

    setTimeout is a little buggy so you might need to use this

    http://developer.appcelerator.com/question/1881/please-help-on-stopping-the-settimeout

    to solve this issue.

    — answered June 19th 2010 by Dan Tamas
    permalink
    0 Comments
  • Is there no better answer? I would think with all the swipe,click, 2 finger tap, At least 1 person would have asked what if they hold it down! I dont know if its just me Ill shut up I guess

    — answered June 20th 2010 by scott castov
    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.