Titanium Community Questions & Answer Archive

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

Handling 'click' and 'dblclick' events

I need to use both the 'click' and 'dblclick' events on a UI control, with each event triggering a different process. However, a 'dblclick' event fires the 'click' event as well as its own.

I've seen how to handle this issue in Objective-C. Is there a way with the Titanium API?

— asked August 11th 2010 by Ted Haeger
  • click
  • dblclick
  • events
0 Comments

3 Answers

  • Here's a workaround:
    http://gist.github.com/525623

    I have also posted a bug report:
    https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/1560-ios-button-doesnt-fire-dblclick-event

    — answered August 12th 2010 by Sindre Sorhus
    permalink
    2 Comments
    • Sindre: Can you expand on that a bit more, please? I'm not sure what you mean by a click handler.

      — commented August 14th 2010 by Ted Haeger
    • See updated answer

      — commented August 15th 2010 by Sindre Sorhus
  • I'm seeing the same issue. Both events are triggering when I double click.

    Has anyone found a way around this?

    — answered August 12th 2010 by Erin Quill
    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.