FluentAvalonia icon indicating copy to clipboard operation
FluentAvalonia copied to clipboard

Any plans to implement smooth scroll?

Open laolarou726 opened this issue 1 year ago • 1 comments

Describe the solution you'd like A universal smooth scrolling solution for all the scrollable content

Describe alternatives you've considered Maybe implement a FluentScrollViewer for the smooth scroll experience

laolarou726 avatar Aug 04 '22 13:08 laolarou726

What do you mean by smooth scrolling? I'm assuming you mean in the case of something like a ListBox filled with lots of items being slow to scroll through. If so, this isn't handled by a special ScrollViewer - this is UI virtualization, which is a super complicated topic and the built in default virtualization of Avalonia isn't the best. I have plans in this area but nothing to share at this time. Or do you mean like in a UWP/WinUI app where the ScrollViewer animates the scroll offset change? That can't be done with the stock ScrollViewer in Avalonia as the Offset property isn't Styled and therefore not animatable. I may port the WinUI 3 ScrollView control here in the future but that's a big job from what I remember last time I looked at that code.

amwx avatar Aug 23 '22 19:08 amwx