In my FE, there is an element that listens to mousemove event:
<div (mousedown)="onMouseDown($event)" (mousemove)="onMouseMove($event)">
...
</div>
The two functions prints out related strings in console, like "onMouseDown triggered" and "onMouseMove is triggered"
Here is the issue and the steps to reproduce it:
mousemove event. Just click on it while the browser window is still inactive. Don't switch back to this window beforehand.Why a clicking operation will trigger mousemove event?
This happens in Chrome and Microsoft Edge, but not on Firefox.
Looks like a bug in the browsers' end. Anyone else has seen it before and know how to solve it?
Thanks in advance!