Skip to content

Commit

Permalink
Finger tap-on-canvas digitizing should move cursor but still let user…
Browse files Browse the repository at this point in the history
… confirm via vertex addition button
  • Loading branch information
nirvn committed Jun 5, 2024
1 parent 1272d17 commit f5770c4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -541,15 +541,7 @@ ApplicationWindow {

if ( qfieldSettings.fingerTapDigitizing && ( ( stateMachine.state === "digitize" && digitizingFeature.currentLayer ) || stateMachine.state === "measure" ) ) {
if ( !positionLocked && ( !featureForm.visible || digitizingToolbar.geometryRequested ) ) {
console.log(point.position)
coordinateLocator.sourceLocation = point.position
coordinateLocator.sourceLocation = point
if ( Number( currentRubberband.model.geometryType ) === Qgis.GeometryType.Point ||
Number( currentRubberband.model.geometryType ) === Qgis.GeometryType.Null ) {
digitizingToolbar.confirm()
} else {
digitizingToolbar.addVertex()
}
}
} else if (!featureForm.canvasOperationRequested && !overlayFeatureFormDrawer.visible && featureForm.state !== "FeatureFormEdit") {
identifyTool.isMenuRequest = false
Expand Down

0 comments on commit f5770c4

Please sign in to comment.