From 7c87f9e507c7fec1291f4de486bfb09fea7b70fb Mon Sep 17 00:00:00 2001 From: ijlal99 Date: Mon, 23 Dec 2024 20:49:56 +0500 Subject: [PATCH] XCD-210: First pick does not work with doublePickFlyTo enabled --- 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 52825881e..342851d14 100644 --- a/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js +++ b/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js @@ -272,7 +272,7 @@ class MousePickHandler { this._timeout = setTimeout(() => { - if (firstClickPickResult && firstClickPickResult.worldPos) { + if (firstClickPickResult) { cameraControl.fire("picked", firstClickPickResult, true);