Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Invalidate the camera position when gesture finishes #13920

Merged
merged 1 commit into from
Feb 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ private void zoomAnimated(boolean zoomIn, @NonNull PointF zoomFocalPoint, boolea
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();
}
}
Expand Down