Menubar breaks cross platform menubar behavior conventions
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 22/100
Research direction
The issue names no files or tests. Start by running the WinUI 3 Gallery app and reproducing the press-hold-drag-release on a menu bar or flyout, then find the menu bar sample in the gallery's C# and XAML code. The cause may sit in the WinUI framework rather than the gallery, which the issue does not identify. Done means a press, drag and release over a menu item activates it, and the maintainers have agreed where the fix belongs.
Written by the indexing model from the issue text.
Description
Which version of the app?
WinUI 3 Gallery
Description
Across different platforms you can operate menubars and dropdowns using a "drag-click" that is initiated by pressing down the primary mouse key over the button, keeping the primary mouse key pressed while going through the menus and releasing over the currently hovered/drag-clicked/selected action to activate it.[^1]
To boil it down, the steps below doesn't work anymore. This used to work with win32 top level menu items, but the behavior has regressed.
Steps to Reproduce
- Press down on your mouse on a top level menu item (File, Edit, View, Help)
- Keep holding down the mouse button
- The top level menu opens
- You move the cursor over the menu item you want to activate
- You release the mouse button
Examples of dropdowns and menubars supporting drag clicking:
Win32 menubars: http://sx.permik.xyz/macup/2023-10-07/04-26-55.mp4 (For some reason the Power Toys Mouse Highlighter gets hidden by the dialogs at ~27 secs)
macOS top level menubar
Android appbar actions, try to swipe downwards on the three vertical dots located on an app bar and keep your finger pressed, release to finish the action.
Web browsers using the <select> element (Safari, Firefox, regressed in Chromium since ???)
Yes, this regression also applies to the ComboBox element also, but I'll wait for feedback on this before making an another issue about that.
[^1]: Aside: This behavior works across OS's and is a delightful behavior that feels really good when it's implemented. Something about not needing to click a second time to act on a dropdown that I personally find really satisfying. This also gives the powerusers the ability to "flick" really fast through visual menus because of reducing the need to stop to click something.
Screenshots
No response
Windows version
Insider Build (xxxxx)
Additional context
Version 23H2 OS Build (25967.1000)
WinUI3 Gallery Version: 2.2.0.0
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 766
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/WinUI-Gallery
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/WinUI-Gallery#2290 ·
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 49/100
microsoft/WinUI-Gallery#2282 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 30/100
microsoft/WinUI-Gallery#2275 · 1 reaction ·
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
microsoft/WinUI-Gallery#2211 · 2 reactions ·
-
needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/WinUI-Gallery#2200 · 6 comments · 1 reaction ·
All issues in microsoft/WinUI-Gallery
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
quality 提案 要トリアージ
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
The Language and Region lists in Options read to a screen reader as "LanguageInfo { Id = ar, ... }"Openbug localization small ui
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hexide-io/HexIDE#4176 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
kind/chore status/draft
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Altinn/altinn-profile#1102 ·
Maintainers usually reply within 1 day