[2.0.9] on_gui_leave is called after on_gui_hover when switching between touching elements
Posted: Wed Oct 23, 2024 11:34 am
I use on_gui_hover and on_gui_leave for custom tooltips - hover creates them, leave hides them.
Since 2.0 this doesn't work, because while both events are called on the same tick, on_gui_hover is called first, so on_gui_leave immediately hides a newly created tooltip. Which is a bit suboptimal.
Video demonstration: Expected behaviour:
- on_gui_leave called before on_gui_hover when switching between touching elements.
Since 2.0 this doesn't work, because while both events are called on the same tick, on_gui_hover is called first, so on_gui_leave immediately hides a newly created tooltip. Which is a bit suboptimal.
Video demonstration: Expected behaviour:
- on_gui_leave called before on_gui_hover when switching between touching elements.