I have a Backbone View with events for mobile and desktop version:
events: {
"touchstart .button": "action1",
"mousedown .button": "action1",
"touchend .button": "action2",
"mouseup .button": "action2",
}
I want only one of the event fired when touched from my mobile device. Currently in one of my mobile device, action1 is fired twice.
I have tried using a custom method from this solution, but somehow in Android 2.3 the custom method for touchend after touchstart won't be fired, but using pure "touchend" would be fired instead.
Thus I'm thinking if Backbone.js can prevent "mouseup" from being fired if "touchend" is being fired.