You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If I scroll down a ScrollViewer with a SelectableTextBlock and I select the text inside, then switch the focus to another app and back the scrollviewer will have scrolled up to the top and unselected the text . See the video below.
To Reproduce
Add a ScrollViewer with MaxWidth and MaxHeight for easier observation.
Add a SelectableTextBlock inside the ScrollViewer.
Put a lot of text inside the SelectableTextBlock.
Run the app, scroll down the ScrollViewer a bit.
Try selecting the text.
Switch to a different app and back
Expected behavior
Scrollviewer stays at same position and text remains selected
Describe the bug
Describe the bug
If I scroll down a ScrollViewer with a SelectableTextBlock and I select the text inside, then switch the focus to another app and back the scrollviewer will have scrolled up to the top and unselected the text . See the video below.
To Reproduce
Add a ScrollViewer with MaxWidth and MaxHeight for easier observation.
Add a SelectableTextBlock inside the ScrollViewer.
Put a lot of text inside the SelectableTextBlock.
Run the app, scroll down the ScrollViewer a bit.
Try selecting the text.
Switch to a different app and back
Expected behavior
Scrollviewer stays at same position and text remains selected
Avalonia version
11.2.4
OS
Windows
Additional context
Video
https://github.com/user-attachments/assets/32de29ed-f3dc-4836-84a9-f353e5acd8ef
Example Code
AvaloniaApplicationSelectScroll.zip
The text was updated successfully, but these errors were encountered: