Understanding the design decision behind TouchInput._onMouseMove

I wanted to track the mouse's current position, so I figured since MV already support mouse natively, this should be an easy task:

console.log(TouchInput.x, TouchInput.y)Unfortunately, what I found was that the coordinates only changed when I was holding down the mouse button.And then I saw this

Code:
TouchInput._onMouseMove = function(event) {    if (this._mousePressed) {        var x = Graphics.pageToCanvasX(event.pageX);        var y = Graphics.pageToCanvasY(event.pageY);        this._onMove(x, y);    }};
Is there a reason why it was written this way?
I think they made it mobile first, mouse later.


On mobile, there's usually no hover or "move" event, you can only touch on different locations. They probably added that to replicate the same process.
I try to understand why, but I don't really see why,

While it may be true than hover events are almost impossible on touch inputs (some of them do allow them) (and yes, you are trying to do hover over something events or you won't be needing mouse coordinates),

I don't understand why they disabled that behaviour for all engines anyway, they won't break mobile games and will improve desktop only games...
I feel like they could've just left all this mouse stuff to Pixi instead of implementing their own TouchInput manager...


I'm still trying to figure out why the Interactivty API doesn't work, and I'm starting to think it's because of things like this.

Original thread: https://forums.rpgmakerweb.com/threads/understanding-the-design-decision-behind-touchinput-_onmousemove.48196/