Purescript Mouseevent To Get X Y Of Mouse
I am new to purescript and was trying to make a 3d cube rotate on mouse events. But I cannot get x and y coordinates of mouse pointer on mouse move event. I am attaching my code be
Solution 1:
You are using window.screenX
and window.screenY
, which is not what you want. You need to use screenX
and screenY
from the MouseEvent
type instead.
Post a Comment for "Purescript Mouseevent To Get X Y Of Mouse"