Clicking the currently selected item in a navigation view when ``SelectionFollowsFocus`` is enabled causes an odd animation
See original GitHub issueDescribe the bug
When SelectionFollowsFocus
is enabled in a muxc navigation view, clicking the currently selected item will cause the selection animation to start from the beginning then move back to the selected item.
Steps to reproduce the bug
Steps to reproduce the behavior:
- Open XCG
- Navigate to NavigationView page
- Scroll down to “tying selection and focus” section
- Click any item, then click it again
- Weird animation
Expected behavior
No animation should be shown, as the selection is not changed.
Screenshots
Version Info
NuGet package version: [Microsoft.UI.Xaml 2.6.0]
Windows app type:
UWP | Win32 |
---|---|
Yes |
Windows 10 version | Saw the problem? |
---|---|
Insider Build (22000.65) | Yes |
October 2020 Update (19042) | Yes |
May 2020 Update (19041) | |
November 2019 Update (18363) | |
May 2019 Update (18362) | |
October 2018 Update (17763) | |
April 2018 Update (17134) | |
Fall Creators Update (16299) | |
Creators Update (15063) |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Xbox | |
Surface Hub | |
IoT |
Additional context Originally from https://github.com/files-community/Files/issues/5387
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:7 (5 by maintainers)
Top Results From Across the Web
SwiftUI: Broken explicit animations in NavigationView?
When I put an explicit animation inside a NavigationView, as an undesirable side effect, it animates the initial layout of the NavigationView ......
Read more >SwiftUI NavigationLink pops out by itself
I believe the cause is the presence of @Environment(\.presentationMode) that seem to re-create the view and it causes the pushed view to be...
Read more >The Complete Guide to NavigationView in SwiftUI
Navigation views present new screens using NavigationLink , which can be triggered by the user tapping their contents or by programmatically ...
Read more >NavigationView - Windows apps
NavigationView is an adaptive control that implements top-level navigation patterns for your app.
Read more >NavigationLink Back Button Bug
The first time it is tapped, the view pops and pushes again immediately. The second time around, it works fine (only pops). The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can repro this issue in other apps as well, I was just using xaml controls gallery as a convenient example of how to repro this.
https://user-images.githubusercontent.com/59544401/126079691-fca8675b-668a-471b-9ff1-65741ccc638a.mp4
Based on the comments above, I’ll transfer this back to the WinUI repo.