[android] invalidate the camera position when gesture finishes

This commit is contained in:
Łukasz Paczos
2019-02-13 12:51:52 +01:00
committed by Łukasz Paczos
parent ca4648964a
commit 98eac18a21

View File

@@ -878,6 +878,9 @@ final class MapGestureDetector {
private void dispatchCameraIdle() {
// we need to dispatch camera idle callback only if there is no other gestures in progress
if (noGesturesInProgress()) {
// invalidate the camera position, so that it's valid when fetched from the #onIdle event
// and doesn't rely on the last frame being rendered
transform.invalidateCameraPosition();
cameraChangeDispatcher.onCameraIdle();
}
}