From da7763b2930856603e049976d9c1c58088cd35a5 Mon Sep 17 00:00:00 2001 From: Curly Brackets <76864176+curly210102@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:28:16 +0800 Subject: [PATCH] fix(geo3D): correct the initial state of _lastHoverDataIndex The hover region in the initial state should be empty Closes #520 --- src/component/common/Geo3DBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/common/Geo3DBuilder.js b/src/component/common/Geo3DBuilder.js index ef402414..72649f53 100644 --- a/src/component/common/Geo3DBuilder.js +++ b/src/component/common/Geo3DBuilder.js @@ -132,7 +132,7 @@ Geo3DBuilder.prototype = { this._updateDebugWireframe(componentModel); // Reset some state. - this._lastHoverDataIndex = 0; + this._lastHoverDataIndex = -1; }, _initMeshes: function () {