question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clicking the currently selected item in a navigation view when ``SelectionFollowsFocus`` is enabled causes an odd animation

See original GitHub issue

Describe 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:

  1. Open XCG
  2. Navigate to NavigationView page
  3. Scroll down to “tying selection and focus” section
  4. Click any item, then click it again
  5. Weird animation

Expected behavior

No animation should be shown, as the selection is not changed.

Screenshots

https://user-images.githubusercontent.com/59544401/125229048-c7c6f080-e28a-11eb-8ee7-a35ae5cb092d.mp4

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:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
winston-decommented, Jul 18, 2021

This looks like an issue in the sample. I don’t repro this in other navview items. We should no-op if we are already on the same page.

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

1reaction
gregwoo-microsoftcommented, Jan 7, 2022

Based on the comments above, I’ll transfer this back to the WinUI repo.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found