MouseMove out event detection for HTML canvas element

The mouseMove event is designed to move around the canvas itself, but I cannot detect when the mouse leaves the canvas.

Is it possible to detect when the mouse moves from the canvas?

+7
source share
2 answers

Have you tried mouseout ?

 element.addEventListener ("mouseout", myFunction, false); 
+14
source

All mouse events that apply to html elements are listed here: http://www.w3schools.com/tags/ref_eventattributes.asp (scroll down to Mouse Events).

0
source

All Articles