Skip to content

Commit

Permalink
Fix stylus hovering when tapping into a feature form
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenD98 authored and nirvn committed Feb 19, 2025
1 parent 3fbbfe5 commit 3cc259b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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

Expand Down

1 comment on commit 3cc259b

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.