Titanium Community Questions & Answer Archive

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

Singletap in ScrollableView

Added to kitchen sink code for scrollable view

scrollView.addEventListener('singletap', function(e)
Titanium.API.info("singletap x" + e.x + ' y ' + e.y);

No singletaps detected from iPhone simulator. What's wrong here??

Otherwise scroll works fine

— asked April 14th 2010 by Eldon Benz
  • iphone
  • scrollableview
  • singletap

2 Answers

  • Have you tried just using the 'click' event instead of the 'singletap' event?

    — answered April 14th 2010 by Mark Burggraf
  • From the scrollableview API click is sent to the page control. I tried adding it to the scrollview anyway but it didn't work

    Singletap is specifically listed in the API as being detected in the view.

    Fortunately the scroll event does work ;)

    — answered April 15th 2010 by Eldon Benz
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.