Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useMouseInElement still thinks mouse is within element when leaving the browser window #2454

Closed
7 tasks done
Klowes opened this issue Nov 17, 2022 · 1 comment · Fixed by #2458
Closed
7 tasks done

Comments

@Klowes
Copy link

Klowes commented Nov 17, 2022

Describe the bug

If using the useMouseInElement composable on an element bordering the edge of the browser window, transitioning the mouse directly from hovering over the element to outside the browser window does not update the composable's state as one would assume.

Reproduction

https://stackblitz.com/edit/vitejs-vite-jegj7g?file=src/App.vue

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 569.16 MB / 15.73 GB
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.15 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 107.0.5304.107
    Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.42)  
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vueuse/core: ^9.4.0 => 9.4.0 
    vue: ^3.0.0 => 3.2.41

Used Package Manager

yarn

Validations

@stale
Copy link

stale bot commented Jan 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 16, 2023
@stale stale bot closed this as completed Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant