Commit 827486be authored by DonLakeFlyer's avatar DonLakeFlyer

Fix recenter logic

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