Skip to main content
May 13, 2023 9:04 AM UTC
Solved

Mouse enter/leave flickering

Sorry I don’t really know how to explain this. I have a menu, while hovering with the mouse you should have a more options on each category. I made a classic mouse enter = open overlay / mouse leaves = close overlay, but in the preview, it keeps flickering when approaching the button area, like one pixel tells mouse enter and the next pixel triggers the mouse leave event, next pixel triggers mouse enter, etc.

Please take a very quick look and tell me if it’s a bug or if I made a mistake, thank you.

flickering mouse enter / mouse leave project

This topic has been closed for replies.
djv
djvSolution
Community Support
May 15, 2023 5:07 PM UTC

Sorry to hear this is happening, @Ioan_G_TyraelThas!

Please reach out to the support team directly via this form for help: https://help.figma.com/hc/en-us/requests/new

Please use your Figma account email, include a link to the file, and share it with support-share@figma.com, so they can take a closer look.

27 replies

Jul 6, 2023 3:44 AM UTC

In the example above, they give themselves away. Instead of using JUST ONE “mouse leave” behaviour (whish is obviously bugged) they have to wrap the whole menu to empty boxes with “mouse enter” condition. This kinda solves the problem in some ugly way but at the same time clearly DEMONSTRATES that the problem is still there.

I will only add that everything worked fine until May 24th.

Aug 11, 2023 10:41 PM UTC

The “Mouse leave” functionality is still bugged @dvaliao can you please look into it? I’m happy to provide you with an example file.

Alexander60
Aug 17, 2023 9:31 AM UTC

Having the same issue!

Jing_Liu
New Member
Aug 24, 2023 7:54 AM UTC

I’m experiencing the same issue, can anyone look into the detail and solve it for us? Thanks!

Pedro_Pellicano
Aug 26, 2023 2:49 AM UTC

Same thing here, I tried using variables to control visibility with boolean values and it ended up blinking anyway.

It’s so frustrating to learn this is happening to so many people and for a relatively long time. The “Mouse Leaves” should be renamed to “Mouse is Off the Element” until it starts behaving as it should: you only trigger a mouse leave interaction IF the mouse has entered the element before.

Aug 30, 2023 6:22 PM UTC

Well well well, it looks like I’m not the only one. How is it possible that the bug existed for so long already?

Aug 30, 2023 10:32 PM UTC

There’s definitely a bug here…This issue has been driving me crazy, but glad I’m not the only one experiencing this. I’ve attempted several workarounds from variants, to components, removing auto layout, frames etc. still experiencing flickering on “Mouse Enter” interaction. I initially thought it was because I had a “Hover” variant interaction AND a “Mouse enter” general interaction on the same element, so I removed the variant interaction, but unfortunately this did not provide a fix. If the issue persists and longer I might have to start my prototype presentations with an epileptic seizure warnings! 😂😂

McKinley
Aug 31, 2023 10:22 PM UTC

I think I figured out a workaround. The overlay flickers because of the mouse leave interaction is set to the overlay itself, not the triggering frame. So the triggering frame keeps opening the overlay and the overlay keeps closing it if your mouse is not on top of the overlay.

In order to eliminate the flickering I set a 200ms delay to the mouse leave interaction on my overlay. So now I have enough time to move my mouse cursor over to the overlay and it doesn’t trigger the overlay to instantly close again.

Screenshot 2023-08-31 at 3.16.30 PM

Hope that helps!

Sep 6, 2023 9:58 AM UTC

Nice workaround! Thanks for sharing!!

Sep 11, 2023 10:11 AM UTC

Thank you so much! Was fighting with this flickering issue the whole day!