Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hover card flickering open and close on Notifications page with small viewport #6115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sajadmh
Copy link

@sajadmh sajadmh commented Nov 5, 2024

Issue: #6067

Summary: On Notifications page when viewport is small/mobile and hovering over the avatar, the ProfileHoverCard pops up then closes instantly for some avatars.

Solution: Prevent the hover card from disappearing when moving the pointer between the avatar and the hover card by checking if the pointer’s destination is within either element. Avoid unnecessary transitions when the pointer hovers over the related elements.

Before:

before.mp4

After:

after.mp4

@sajadmh sajadmh marked this pull request as ready for review November 5, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant