Commit 80546567 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4893 from DonLakeFlyer/FollowVehicleReCenter

Fix follow vehicle recenter logic
parents df27a5b7 827486be
......@@ -96,7 +96,7 @@ FlightMap {
if (_keepVehicleCentered) {
flightMap.center = _activeVehicleCoordinate
} else {
if (firstVehiclePositionReceived) {
if (firstVehiclePositionReceived && recenterNeeded()) {
animatedMapRecenter(flightMap.center, _activeVehicleCoordinate)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment