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

3 Answers

  • Here's a workaround:

    I have also posted a bug report:

    — answered August 12th 2010 by Sindre Sorhus
    • 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
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.