Mouse.notify leaveListener faulty fires
Target: HTML5 Electron/ (krom doesn't seem to utilize leaveListener at all) OS: Windows 10
Documentation
The leaveListener in Mouse.notify will fire with mouse clicks and not just when leaving the screen. It looks like it's never fired between a mouse-down and mouse-up, it seems to fires after the mouse-up of a quick click.
Reproduction
The easiest way to see this happen is just to click the screen multiple times very quickly until you see the event fire. It shouldn't take many clicks in rapid succession, maybe at most 10 very quick clicks.
The only code about leaveListener is canvas.onmouseleave = mouseLeave; for html5/electron, so there is nothing to fix. Try reproduce it with simple canvas and some mouse event listeners without kha (with current electron and latest after).