Open gebodal opened 3 months ago
(Apologies for the close/unclose, clicking all the wrong buttons today)
Need some clarity here. I ran the repro on Win11 and get the following behaviors:
Which scenario is at issue or is it something else? A short screen capture might help here.
It’s scenario 2 that isn’t working on my machine. None of the following cause scrolling for scenario 2:
I can try and get a screen capture for you, but it would mostly be things not happening, so I’m not sure how helpful that would be. Would it be useful to have DevTools output as well? What would be the information to show? (Apologies, I’m new to debugging Avalonia like this)
Something like this?
https://github.com/user-attachments/assets/0db1cb2a-3023-4fed-bdf2-839696b7c2d6
Weird. I only get (Win11) the tunnel event through LightDismissOverlayLayer
while not hovering the ListBox-in-Popup. When hovering, it properly goes through the ContentPresenter
, MainView
, etc.
I'm not getting LightDismissOverlayLayer when hovering outside of both ListBoxes? It just tunnels MainWindow > Panel > Panel and then bubbles back out again.
Describe the bug
On Windows, the pointer scrollwheel is not scrolling a
ListBox
inside aPopup
(no error thrown, but no effect on the control). TheListBox
responds to the scrollwheel as expected when inside aGrid
(orStackPanel
).However, on Ubuntu and Mac, the
ListBox
responds as expected in both situations.To Reproduce
This project contains an example of the issue: ListBoxScrollTest.zip
Tested with the desktop lifetime, on Windows 10 Home and Ubuntu 20.04 (and MacOS, but I'm afraid I borrowed that, and I didn't note down the OS version).
Expected behavior
The
PointerWheelChanged
event should cause theListBox
to scroll regardless of whether it is a child of aGrid
or aPopup
.Avalonia version
11.1.2
OS
Windows
Additional context
The
PointerWheelChanged
event does not propagate to theListBox
control when inside thePopup
, and only gets as far as theLightDismissOverlayLayer
, as seen in DevTools when the mouse wheel is scrolled over the control (Windows 10 Home):So the scrollwheel has no effect on that
ListBox
.For the
ListBox
that is a direct child of theGrid
, the event propagates fully into theListBox
template elements (Windows 10 Home):