Skip to main content
C
1y ago

Mouse input outside the canvas

If I have a small character illustration on a page in a React site where I want the eyes to follow the mouse anywhere on the page. Is there a way to pass in the mouse position to the listener for outside the canvas? Sorry if this is super basic, but I'm an animator and not a web dev, and I cant find any documentation about it!