恢复左键旋转的惯性(此前误关,非问题根源)
This commit is contained in:
@@ -223,10 +223,6 @@ export class CesiumGlobe {
|
|||||||
modifier: Cesium.KeyboardEventModifier.CTRL,
|
modifier: Cesium.KeyboardEventModifier.CTRL,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
// 关闭相机惯性:避免左键旋转释放后的余力在右键环视时叠加,产生“两套机制打架”
|
|
||||||
controller.inertiaSpin = 0;
|
|
||||||
controller.inertiaTranslate = 0;
|
|
||||||
controller.inertiaZoom = 0;
|
|
||||||
|
|
||||||
// 阻止右键弹出浏览器菜单
|
// 阻止右键弹出浏览器菜单
|
||||||
scene.canvas.addEventListener('contextmenu', (e) => e.preventDefault());
|
scene.canvas.addEventListener('contextmenu', (e) => e.preventDefault());
|
||||||
|
|||||||
Reference in New Issue
Block a user