I'm implementing the following js code for adding events on a Canvas:
c.addEventListener("touchstart",function(e){console.log('touch')},true);
c.addEventListener("mousedown",function(e) {console.log("mouse")},true);
My computer is a hybrid Windows 10 tablet. On IE/EDGE, when I perform a mouse click I get 'mouse' log. On IE/EDGE, when I perform a touch on screen, I get 'mouse' log too.
However, when on IE/EDGE mobile (Windows phone) or Chrome, I get the 'touch' log when I touch the screen.
I'm convinced that shomehow IE/EDGE, when executed on a laptop, translates "touch" events to 'mouse' events.
Is there any javascript, meta-tag or any option to disable this "translation"?
Note. I'm using touch and mouse events due PIXIJS framework.