#Area2D mouse entered / exited events issue

1 messages · Page 1 of 1 (latest)

unborn lily
#

hello! i'm using on_mouse_entered and exited events attached to Area2D to handle the display of a tooltip, but when i quickly exit a node and enter a new one, it happens that the mouse_entered is not fired. here is a video reproduction:

https://streamable.com/24m2wn

i tried to play with the visibility layers/mask (i don't really understand these), i tried to put a higher priority on the Area2D than the rest of my elements, and i'm pretty sure nothing can interfer here... i don't understand what's going on!

inner jolt
#

I don't know why that's happening (n00b here), but perhaps you can work around it by keeping a reference to the previous popup and when you enter or exit you dismiss the previous popup, before displaying the new one?