Amit Hagin Amit Hagin - 2 months ago 12
Javascript Question

Detect mouseMove out event for HTML canvas element

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?

Answer

Have you tried mouseout?

element.addEventListener ("mouseout", myFunction, false);
Comments