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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
It seems to be an issue with useMouse. When the page has already been scrolled and the mouse moves to get new coordinates, then scrolling again triggers an issue caused by executing pos[1] + window.scrollY. To resolve this, the last scroll position of the page needs to be recorded, and the difference between the two scrolls should be calculated.
Describe the bug
When scrolling, the elementY get changed, if we stop scrolling and move the cursor again the value goes back to its normal.
Enregistrement.de.l.ecran.2024-08-29.a.10.37.22.mov
Reproduction
https://vueuse.org/core/useMouseInElement/#usemouseinelement
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: