You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since useMousePosition returns the mouse position in the document (and not the window), the position changes as the user scrolls. Yet this is not recognized by the hook. See this video:
useMousePosition should therefore update the X,Y when onscroll is fired. I also think it would be good to include an option to only look at the mouse position in the window, and not the document, as that is often more useful.
The text was updated successfully, but these errors were encountered:
Since useMousePosition returns the mouse position in the document (and not the window), the position changes as the user scrolls. Yet this is not recognized by the hook. See this video:
https://www.loom.com/share/7009214d57ba44d8b6bc2e0bbdbf04e1
useMousePosition should therefore update the X,Y when onscroll is fired. I also think it would be good to include an option to only look at the mouse position in the window, and not the document, as that is often more useful.
The text was updated successfully, but these errors were encountered: