Detect mouseMove out event for HTML canvas element
13,863
Have you tried mouseout
?
element.addEventListener ("mouseout", myFunction, false);
Author by
Amit Hagin
Updated on June 05, 2022Comments
-
Amit Hagin almost 2 years
mouseMove event is for moving on the canvas itself, but I can't detect when the mouse leaves the canvas.
Is there an option to detect when the mouse is moving out of the canvas?