[android] invalidate the camera position when gesture finishes
This commit is contained in:
committed by
Łukasz Paczos
parent
ca4648964a
commit
98eac18a21
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user