Skip to content

Commit

Permalink
Fix parameter injection warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 27, 2024
1 parent 9dcac6e commit 3913a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qml/NavigationBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Rectangle {
property int distance: 0
property bool isTracing: false

onPressed: {
onPressed: mouse => {
startX = mouse.x;
startY = mouse.y;
lastX = mouse.x;
Expand All @@ -142,7 +142,7 @@ Rectangle {
distance = 0;
isTracing = true;
}
onPositionChanged: {
onPositionChanged: mouse => {
if (!isTracing)
return;
var currentVelocity = Math.abs(mouse.y - lastY);
Expand Down

1 comment on commit 3913a39

@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.