Is there anyway to keep the scrolling position while navigating between Razor pages in Blazor MAUI Hybrid? We have Page A with a master-detail system. When user scroll downs in Page A (could be way down the page), then clicks an item go to Page B for details, then when navigating back the user scroll position is on the top of the page again which is quite annoying and unexpected. We have been trying to resolve this by saving the state and with javascript use scrollTo in order to restore the position but it doesn't work well because its flickering when trying to restore the position, especially if its far down. We read that there should be something about this in Blazor Enhanced Navigation but can't understand how it works or how we can enable that. We are using .NET 8.
↧