There is a problem with these specific Warcraft 3 natives (related to Frames):
FRAMEEVENT_MOUSE_ENTER
FRAMEEVENT_MOUSE_LEAVE
Description of the problem:
These two frame events cause an infinite loop between the leave and enter state, triggering any leave and enter functions attached it to continuously.
This is a problem when you program an event to happen only on enter (or) leaving a frame, as it will trigger many times instead.
Expected behavior: Only triggers once when you enter and once when you leave, if you haven’t left the frame it should not continuously update the state.
Video showcasing the problem:
Additionally, you can see it flashing like that because the natives are bugged, the mouse also moves towards the right side on every refresh (it should not be behaving this way), this is a problem, it occurs with all the mouse related natives.
Demo map of the problem (It is not protected, it can be opened to see the issue first hand, or directly run to experience the bug the video is displaying):
https://www.hiveworkshop.com/threads/ui-utils-v1-05.320005/