My problem is I cannot cancel the mousedown event that's fired after touchstart has been triggered. This problem is specific to Android's native browser.
Chrome and Safari both successfully execute my method below in both Android and iOS (onMenuInteraction). My problem seems to be confined to Android's native browser (for me that's preinstalled with Android 4.1.2).
The following is code that I've extracted from my Javascript object.
MenuButtonView.prototype.onSmallScreenSetUp = function() {
$("#mobileMenuBtn").on( { "touchstart mousedown": $.proxy( this.onMenuInteraction, this ) } );
}
MenuButtonView.prototype.onMenuInteraction = function(e) {
console.log( this, "onMenuInteraction", e );
e.stopImmediatePropagation();
e.stopPropagation();
e.preventDefault();
}
Please could someone tell me how I can cancel the mousedown event that's fired after your finger touches the screen triggering the touchstart event.
This requirement is based on managing interaction with both desktop and mobile / tablet platforms. Everything works until you're testing with the Android native browser.
Many thanks
D