Browse Source

Turn off flick/an gestures when follow vehicle set

QGC4.4
Donald Gagne 8 years ago
parent
commit
59755a31f0
  1. 6
      src/FlightDisplay/FlightDisplayViewMap.qml

6
src/FlightDisplay/FlightDisplayViewMap.qml

@ -27,6 +27,10 @@ FlightMap { @@ -27,6 +27,10 @@ FlightMap {
anchors.fill: parent
mapName: _mapName
gesture.acceptedGestures: _followVehicle ?
MapGestureArea.PinchGesture :
MapGestureArea.PinchGesture | MapGestureArea.PanGesture | MapGestureArea.FlickGesture
property alias missionController: missionController
property var flightWidgets
property var rightPanelWidth
@ -39,6 +43,8 @@ FlightMap { @@ -39,6 +43,8 @@ FlightMap {
property int _retaskSequence: 0
property real _toolButtonTopMargin: parent.height - ScreenTools.availableHeight + (ScreenTools.defaultFontPixelHeight / 2)
property bool followVehicleConnection: _followVehicle ///< Only use to create connection on
Component.onCompleted: {
QGroundControl.flightMapPosition = center
QGroundControl.flightMapZoom = zoomLevel

Loading…
Cancel
Save