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
When a disabled control (IsEnabled="False") is placed inside a ScrollViewer, it incorrectly intercepts and consumes mouse scroll input events, preventing the ScrollViewer from handling them as intended. This behavior occurs even if the disabled controls, such as a TextBlock or a TextBox, are not focusable and are not actively interacting with the user. The problem is evident when the mouse is positioned over these controls, and the user attempts to scroll the ScrollViewer.
Observed Behavior
Scroll input is intercepted by the disabled controls, preventing the ScrollViewer from scrolling.
The issue is observed with both focusable controls (e.g., TextBox) and non-focusable controls (e.g., TextBlock), indicating that the disabled state alone is causing the problem.
The controls effectively "block" the scroll event, creating a poor user experience, as users cannot scroll when the cursor is positioned over disabled elements.
Problem occured after upgrading from Avalonia 11.0.10 to >= 11.1.0.
To Reproduce
Create a ScrollViewer with content that exceeds the viewport, allowing scrolling.
Inside the ScrollViewer, place a container (e.g., DockPanel) with IsEnabled="False".
Populate the disabled container with child elements such as TextBlock and TextBox.
Run the application and hover the mouse cursor over the disabled elements.
Attempt to scroll using the mouse wheel.
Expected behavior
Mouse scroll events should propagate to the ScrollViewer, allowing scrolling regardless of whether the child controls are disabled.
Disabled controls should not interfere with input event handling when they are visually non-interactive.
Describe the bug
Issue Overview
When a disabled control (IsEnabled="False") is placed inside a ScrollViewer, it incorrectly intercepts and consumes mouse scroll input events, preventing the ScrollViewer from handling them as intended. This behavior occurs even if the disabled controls, such as a TextBlock or a TextBox, are not focusable and are not actively interacting with the user. The problem is evident when the mouse is positioned over these controls, and the user attempts to scroll the ScrollViewer.
Observed Behavior
Problem occured after upgrading from Avalonia 11.0.10 to >= 11.1.0.
To Reproduce
Expected behavior
Avalonia version
>= 11.1.0
OS
Windows
Additional context
Tested with this XAML code:
The text was updated successfully, but these errors were encountered: