03-15-2013 04:19 AM
Framworks: JQuery Mobile + Backbone JS
Device: Playbook OS 2
I have a strange behaviour in my app. Sometimes clicks on buttons are not reliable triggered. I tried to solve it by using the touchstart because of some scrolling/clicking detection issues but it doesn't work that good. It's a cordova app and for android the same app works great.
I am sure not missing the control because the animation effect (of JQuery Mobile) is shown correct.
It also feels like there are little differents for the buttons. Maybe there are some components causing these problems (?)
Is there a way to debug this?
03-18-2013 09:05 AM
Can you rule out that jQuery is not interfering? It often likes to "remove all events" as a cleanup effort that often conflicts with other frameworks that use events (e.g. Backbone.js).
is your click event something you are registering using backBone.js (e.g. routing)? If so then I would say jQuery is definitely the issue here.
Try making a sample page with the same button, with BackBone.js, but no jQuery.