Titanium Community Questions & Answer Archive

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

Click eventlistener causes crash when clicking multiple views at once

I'm currently working on an iPad app with multiple views within a window that when clicked will open up a new window within a navgroup. The problem I'm having is that if I click 2 or more of those views on the device at almost the same time (multitouch) it is crashing hard out of the app.

Is there any way I can stop it from catching those other click events – or ignore them? I've tried setting a boolean flag, moving the click event to the parent view, but nothing seems to help.

Code looks something like:


function showNext(e) {
   if(!alreadyOpened) { // this doesn't seem to work
       navGroup.open(Details.mainWindow,{animated:true});    
       alreadyOpened = true;
   }
}

myView.addEventListener('click', showNext);

Thanks for any and all help!

— asked October 26th 2010 by cy scott
  • ipad
  • mobile
2 Comments
  • I have the same problem. What is the solution?

    Best regards

    — commented February 25th 2014 by Lorenzo Piccinini
  • I am also phasing same problem in iOS.

    Any help will be appreciated.

    Thanks,

    Ankita

    — commented June 5th 2014 by Ankita Gadhia

0 Answers

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.