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?
Have you tried mouseout
?
element.addEventListener ("mouseout", myFunction, false);
Here's a list of all mouse events that apply to html elements: http://www.w3schools.com/tags/ref_eventattributes.asp (scroll down to Mouse Events).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With