Skip to content

2182 prevent nav menu hover flickering#693

Open
correct-horse-battery-bench wants to merge 1 commit into
masterfrom
2182-enhancement-prevent-nav-flickering
Open

2182 prevent nav menu hover flickering#693
correct-horse-battery-bench wants to merge 1 commit into
masterfrom
2182-enhancement-prevent-nav-flickering

Conversation

@correct-horse-battery-bench
Copy link
Copy Markdown
Contributor

@correct-horse-battery-bench correct-horse-battery-bench commented Jun 1, 2026

Fix the flickering nav menu on hover by removing the global mousemove elemntFromPoint listener with a hoverlistener over both the trigger button and the attached .cdk-overlay-pane.

Issue: hashtopolis/server#2182

Replace the global mousemove + elementFromPoint poll (which raced the menu's
open/close animation and caused open/close flicker) with hover detection
driven by real mouseenter/mouseleave on the trigger button and the rendered
overlay panel. The <mat-menu> host is a display:none placeholder, so the panel
listeners are attached on open to the .cdk-overlay-pane (which stays
interactive during the 120ms enter animation). Close fires after a short grace
period only when the pointer is over neither element.

Also add a visible hover state (background + brighter text) to the header
dropdown items.
@correct-horse-battery-bench correct-horse-battery-bench force-pushed the 2182-enhancement-prevent-nav-flickering branch from a9c3a22 to a559ab7 Compare June 1, 2026 11:41
@correct-horse-battery-bench correct-horse-battery-bench marked this pull request as ready for review June 1, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT]: Prevent Nav Flickering

1 participant