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
I'm experiencing an issue with the useMouseInElement function from VueUse in a Nuxt3 project. The isOutside value always returns true when I scroll the page whithout moving the mouse, even if the mouse is inside the element.
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.
I noticed this strange behavior too while using useMouseInElement with type page. It is also visible in the demo here.
If I scroll without moving the mouse, not only isOutside but also y and elementY get off. I guess it would be the same for x values in case the page was with a horizontal scroll.
Screen.Recording.2024-09-13.at.00.38.15.mov
I could see that this composable uses useMouse under the hood and the demo has the same behavior so the culprit is this composable.
Describe the bug
I'm experiencing an issue with the useMouseInElement function from VueUse in a Nuxt3 project. The isOutside value always returns true when I scroll the page whithout moving the mouse, even if the mouse is inside the element.
Reproduction
https://stackblitz.com/edit/vitejs-vite-iwn1w4?file=src%2FApp.vue
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: