From 304a2d43432bd62237da57c6129ed30146a9cbf6 Mon Sep 17 00:00:00 2001 From: lindsay Date: Tue, 2 Jul 2024 22:34:19 +0200 Subject: [PATCH] [FIX] Camera incorrectly zooms to end point of measurement after completion --- src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js b/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js index 86b61735eb..e3fc594978 100644 --- a/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js +++ b/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js @@ -266,7 +266,7 @@ class MousePickHandler { this._timeout = setTimeout(() => { - if (firstClickPickResult) { + if (firstClickPickResult && firstClickPickResult.worldPos) { cameraControl.fire("picked", firstClickPickResult, true);