From 2ac179ff0d182e586d40c75c000cc44290048ddb Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Wed, 26 Apr 2017 10:42:42 -0700 Subject: [PATCH] Fix user panning --- src/FlightDisplay/FlightDisplayViewMap.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/FlightDisplay/FlightDisplayViewMap.qml b/src/FlightDisplay/FlightDisplayViewMap.qml index 943f6c3c5..cff60f287 100644 --- a/src/FlightDisplay/FlightDisplayViewMap.qml +++ b/src/FlightDisplay/FlightDisplayViewMap.qml @@ -60,8 +60,12 @@ FlightMap { // When the user pans the map we stop responding to vehicle coordinate updates until the panRecenterTimer fires onUserPannedChanged: { - _disableVehicleTracking = true - panRecenterTimer.start() + if (userPanned) { + console.log("user panned") + userPanned = false + _disableVehicleTracking = true + panRecenterTimer.restart() + } } function pointInRect(point, rect) { -- 2.22.0