[SOLVED] Issue with click event on touch screen

Starting from your input I found that this is a common annoying issue.
So it seems that a possible solution could be to call event.preventDefault() on onTouchEnd event.
I tried in the repro and it works fine now :grinning:

in the initialize I subscribe to touch end event:

    // Only register touch events if the device supports touch
    var touch = this.app.touch;
    if (touch) {
        touch.on(pc.EVENT_TOUCHEND, this.onTouchEnd, this);
    }

then the function:

TouchIssue.prototype.onTouchEnd = function(evt) {
    evt.event.preventDefault();
};
1 Like