Conversation
- Updated `MudOverlay` components with a new property. - Introduced `DebounceDispatcher` in `MudMenu.razor.cs` for hover delay management to replayce Task.Delay. - Replaced cancellation tokens with debouncers to streamline hover actions. - Enhanced overall responsiveness and usability of the `MudMenu` component by increasing the leave to be 2x delay. - V2
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #11117 +/- ##
==========================================
+ Coverage 90.97% 90.99% +0.02%
==========================================
Files 431 431
Lines 14056 14055 -1
Branches 2728 2722 -6
==========================================
+ Hits 12788 12790 +2
+ Misses 651 650 -1
+ Partials 617 615 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
Maybe in future |
very cool |
|
2x delay is not ideal as it no longer matches common standard as seen in google docs etc. and now has inconsistent close timing: Video3.mp4 |
|
As I understand the nested MudMenu got broken because of #10551? |
|
There were a number of issues actually.
That being said I made a judgement call on the 2x hoverdelay, didn't see any spec - feel free to change it back. Screen.Recording.2025-04-01.083442.mp4 |



Description
Refactored the cancellation and Task.Delay logic into DebounceDispatcher
Made pointerleave 2x the hoverdelay as pointerenter for smoother transitions
Updated MudGlobal xml to read that behavior
Modified overlay to only have one overlay that is not repositioned allowing PointerEnter and PointerLeave to operate as intended
Added exception to PointerLeave for the Parent menu that does not activate by hover
Resolves #11115
How Has This Been Tested?
Visually tested in Viewer (WASM) and Docs (Server)
Added multiple unit tests to cover all scenarios and test the actual timing
Type of Changes
Checklist
dev).