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

May 13, 2023 9:45 AM UTC

figma flickering issue

Here, I recorded it.

Roberts_Kaplans2
May 15, 2023 8:46 AM UTC

Same issue for prototyping complex navigation. Everything worked 3 month ago.

James_Wolfcale
May 15, 2023 4:12 PM UTC

Seeing the same thing. Worth noting that the flickering does not occur when you remove the mouse leave > close overlay interaction.

djv
Figmate
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.

Tomas_Ernesto_Nones_Gonzalez
New Member
May 29, 2023 1:04 PM UTC

Also having the same issue.

I’m simulating the effect of a transparent header going sticky and changing to a solid bg color on scroll.

The way I did it was I made a copy of the home page with the sticky solid header. Then I used:

mouse leave on the hero section of home 1 → navigate to home 2

and

mouse enter on the hero section of home 2 → navigate to home 1

It worked as intended a week ago. Now it’s broken. Same flickering issue, once triggered it never stops. It loops infinitely between the two pages.

My only clue is that it started happening at the same time as the “state management” update.

Jun 5, 2023 5:40 AM UTC

Same issue here

Melissa_Wallis
Jun 12, 2023 5:09 PM UTC

Having the exact same issue, haven’t seen any solutions yet

Linda_Duong
New Member
Jun 15, 2023 5:41 PM UTC

I am also having the same issue.
The prototype flickers while prototyping a mouse enter = open overlay / mouse leaves = close overlay. It doesn’t flicker when you remove the mouse leave = close overlay interaction.

Jun 15, 2023 7:41 PM UTC

Here is the staff answer

Hi there,

I checked your overlay. “Mouse Leave” triggers whenever the mouse is outside a section, ‌not if the mouse enters and then leaves an area. Therefore, your overlay is both closing and opening at the same time, this is what is causing the flickering. To make this work properly, I would recommend using interactive components instead of the Overlay feature. An example of what I’m talking about is in the community file below.

https://www.figma.com/community/file/1101844796311678876

Still not sure why I should use interactive components instead of using mouse enter/mouse leave but well… I’ll try to figure out one of those days

Van_Wang
Jun 28, 2023 12:22 AM UTC

This explanation is misleading. There seems to be a bug associated with the “Mouse leave” functionality. Even in the example they provided, the solution involves a workaround utilizing “Mouse enter” alongside transparent boxes surrounding the dropdown menu to accomplish the intended purpose of “Mouse leave.”