I have tried to use stopPropagation and stopImmediatePropagation, But it’s not working for touch input. When I use this for mouse input it’s working great. Any one help me to resolve this issue?
Thanks in advance.
Code:
BlockMouseInput.prototype.initialize = function () {
if (this.app.touch) {
this.entity.element.on('touchstart', function (e) {
console.log('touchstart');
e.stopPropagation();
}, this);
}
};