-
Notifications
You must be signed in to change notification settings - Fork 0
0P Getting the mouse position
Luis Murillo Baltodano edited this page Aug 3, 2020
·
1 revision
onMouseMove(optionalCallback)
Once this function gets called window.mousePosition gets created so it will be updated with each mouse movement
function optionalCallback(windowEvent) {
// this triggers every time the 'mousemove' event triggers on window
}
mouse() // returns window.mousePosition