Kha icon indicating copy to clipboard operation
Kha copied to clipboard

Mouse.notify leaveListener faulty fires

Open XANOZOID opened this issue 6 years ago • 1 comments

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.

XANOZOID avatar Jun 18 '19 01:06 XANOZOID

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).

RblSb avatar Jun 23 '19 14:06 RblSb