QField icon indicating copy to clipboard operation
QField copied to clipboard

Zooming by scroll wheel does not work on Wayland

Open boardend opened this issue 9 months ago • 2 comments

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 wheelEvent in QgsQuickMapCanvasMap with C++ fires also on Wayland

(cc @mohsenD98 )

boardend avatar Feb 12 '25 08:02 boardend

@boardend , good to keep track of this; I believe this is a relevant upstream issue: https://bugreports.qt.io/browse/QTBUG-112432

nirvn avatar Feb 12 '25 08:02 nirvn

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)

boardend avatar Feb 12 '25 09:02 boardend

Can confirm that this is fixed. Thanks guys 🥳

boardend avatar Oct 12 '25 19:10 boardend