uwu / shelter

an attempt to prepare for the worst
https://shelter.uwu.network/
Creative Commons Zero v1.0 Universal
349 stars 10 forks source link

[ui] Floating tooltip fixes. #23

Closed TheArmagan closed 6 months ago

TheArmagan commented 6 months ago

I added three new window event listeners and removed two of the current element listeners to tooltip we create to fix that issue.

Basically, it currently listens to user's mouse movements. Instead of relying on dom's mouseenter and mouseleave events. Because mouseleave event sometimes never get called that's due to moving the mouse too fast.

yellowsink commented 6 months ago

Will look into what exactly happens here more carefully because this does not seem to fully resolve it

https://github.com/uwu/shelter/assets/19270622/6ca84809-94e2-43ad-94bd-ab9b3c28342e

EDIT: I'm a dumbass! And did not build shelter-ui before rebuilding shelter lol, no, this fix seems good to me, I'm happy to merge