From 655c2516fee6de9ca2cb2d8a272ee8fedd20f30a Mon Sep 17 00:00:00 2001 From: Mohsen Date: Tue, 18 Feb 2025 00:28:13 +0330 Subject: [PATCH] Fix stylus hovering when tapping into a feature form --- src/qml/qgismobileapp.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/qml/qgismobileapp.qml b/src/qml/qgismobileapp.qml index ce6b69ae2f..e9164d86af 100644 --- a/src/qml/qgismobileapp.qml +++ b/src/qml/qgismobileapp.qml @@ -558,10 +558,13 @@ ApplicationWindow { * PointerDevice.TouchScreen was explicitly taken out of the accepted devices. * The timer is needed as adding additional fingers onto a device re-triggers hovered * changes in unpredictable order. + * + * Known issue: Switching between finger and stylus input within 500 milliseconds may break + * the stylus binding to the CoordinateLocator. */ Timer { id: dummyHoverTimer - interval: 750 + interval: 500 repeat: false onTriggered: { @@ -571,7 +574,7 @@ ApplicationWindow { HoverHandler { id: dummyHoverHandler - enabled: !qfieldSettings.mouseAsTouchScreen && !(positionSource.active && positioningSettings.positioningCoordinateLock) + enabled: !qfieldSettings.mouseAsTouchScreen && hoverHandler.enabled acceptedDevices: PointerDevice.TouchScreen grabPermissions: PointerHandler.TakeOverForbidden