Skip to content

Commit 9597ffa

Browse files
committed
Change private active property
1 parent 772ac13 commit 9597ffa

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/cesium-binoculars/cesium-binoculars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class CesiumSphereCamera {
2121
if (active === this.active_) {
2222
return;
2323
}
24+
this.active_ = active;
2425
this.viewer.scene.screenSpaceCameraController.enableZoom = !active;
2526
const frustum = /** @type {import('cesium').PerspectiveFrustum} */ (this.viewer.scene.camera.frustum);
2627
if (active) {

packages/cesium-sphere-camera/cesium-sphere-camera.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default class CesiumSphereCamera {
3535
if (active === this.active_) {
3636
return;
3737
}
38+
this.active_ = active;
3839
this.viewer.scene.screenSpaceCameraController.enableInputs = !active;
3940
if (active) {
4041
this.viewer.screenSpaceEventHandler.setInputAction(this.handleDownEvent_, ScreenSpaceEventType.LEFT_DOWN);

0 commit comments

Comments
 (0)