From 656f535467755d32247766a50c39fc8f5e42379b Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 14:25:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=B3=E9=94=AE=E7=8E=AF?= =?UTF-8?q?=E8=A7=86=EF=BC=9ARIGHT=5FDRAG=20=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E7=94=A8=20MOUSE=5FMOVE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index 8ea672b..db4e501 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -396,12 +396,12 @@ export class CesiumGlobe { handler.setInputAction((movement) => { if (!this._lookState) return; const s = this._lookState; - const dx = movement.position.x - s.lastX; - const dy = movement.position.y - s.lastY; - s.lastX = movement.position.x; - s.lastY = movement.position.y; + const dx = movement.endPosition.x - s.lastX; + const dy = movement.endPosition.y - s.lastY; + s.lastX = movement.endPosition.x; + s.lastY = movement.endPosition.y; this._orbitAroundPivot(s.pivot, dx * LOOK_RATE, dy * LOOK_RATE); - }, Cesium.ScreenSpaceEventType.RIGHT_DRAG); + }, Cesium.ScreenSpaceEventType.MOUSE_MOVE); handler.setInputAction(() => { if (!this._lookState) return;