tristen / hoverintent

:mouse: Fire mouse events when a user intends it
https://tristen.ca/hoverintent/
MIT License
331 stars 54 forks source link

Buggy behavior when mouse moves at corner #20

Closed steelbrain closed 7 years ago

steelbrain commented 7 years ago

This is from your demo page

kapture 2017-02-02 at 4 44 03

tristen commented 7 years ago

This isn't really a bug. The hover state is active when the cursor is over the element and it's being animated back over the cursor when you come off the edge of it. I can remove the tooltip animation if it's causing confusion!

steelbrain commented 7 years ago

Yeah IMHO the behavior in the gif should not be the intended behavior. That gif isn't even sped up, it makes weird movement when cursor is near the end of tooltip area

tristen commented 7 years ago

I understand but it's not an issue with hoverintent. It's an issue with the CSS animation used in the example. I can remove it 👍