Gestures inside GtkScrolledWindow not activating
Steps to reproduce
- Add a scrolled window inside a scrolled window
- Use touchscreen to activate pan gesture
Current behavior
Top most scrolled window reacts to gesture, child scrolled window doesn't get notified at all.
Expected outcome
Bottom most scrolled window (or any other widget that registers to this gesture) should receive the gesture.
Version information
GTK3 and GTK4
Additional information
I believe containers should be using BUBBLE_PHASE instead of CAPTURE_PHASE for event controllers. Specifically if I want to use gestures on a child widget inside a scrolled window (e.g. drag gesture) events get eaten by the parent container. However, this shouldn't happen as child widgets then don't behave correctly anymore. Instead, containers should behave as any other widget regarding gestures.
With gtk_widget_observe_controllers
it should be possible to achieve the current behavior again, however, I think scrolled window should default to BUBBLE_PHASE.