QField
QField copied to clipboard
Zooming by scroll wheel does not work on Wayland
On Linux (tested with Ubuntu 22.04) with Wayland the scroll events are not propagated to the WheelHandler in MapCanvas.qml (same for QFieldCamera.qml).
Observations:
- System wide zoom and fractional zooming (which can cause hiccups in some apps) are not affecting the issue
- Zooming by pinching on the touch screen works
- Scrolling in QML-based list and form views works just fine
- When logging in into a X11 session, scrolling works fine by scroll wheel and also touch screen
- Handling the
wheelEventinQgsQuickMapCanvasMapwith C++ fires also on Wayland
(cc @mohsenD98 )
@boardend , good to keep track of this; I believe this is a relevant upstream issue: https://bugreports.qt.io/browse/QTBUG-112432
Sounds like a tough one and will probably take some time... We could mitigate this on our side, by moving the WheelHandler from MapCanvas.qml to QgsQuickMapCanvasMap (until resolved in Wayland and Qt platform)
Can confirm that this is fixed. Thanks guys 🥳