Skip to content

Commit

Permalink
Do not disable stylus hovering when mouse acts as touchscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Mar 22, 2024
1 parent c208170 commit 34e5c6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,9 @@ ApplicationWindow {

HoverHandler {
id: hoverHandler
enabled: !qfieldSettings.mouseAsTouchScreen
&& !(positionSource.active && positioningSettings.positioningCoordinateLock)
enabled: !(positionSource.active && positioningSettings.positioningCoordinateLock)
&& (!digitizingToolbar.rubberbandModel || !digitizingToolbar.rubberbandModel.frozen)
acceptedDevices: PointerDevice.Stylus | PointerDevice.Mouse
acceptedDevices: !qfieldSettings.mouseAsTouchScreen ? PointerDevice.Stylus | PointerDevice.Mouse : PointerDevice.Stylus
grabPermissions: PointerHandler.TakeOverForbidden

property bool hasBeenHovered: false
Expand Down

0 comments on commit 34e5c6e

Please sign in to comment.