Skip to content

Commit

Permalink
Merge pull request #1242 from tmarti/activation-events-distance-measu…
Browse files Browse the repository at this point in the history
…rement-control

Fire `"activated"` events from `DistanceMeasurementsMouseControl`
  • Loading branch information
xeolabs authored Nov 17, 2023
2 parents ec4cfb4 + 3fedd72 commit 1ba8fce
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ export class DistanceMeasurementsMouseControl extends DistanceMeasurementsContro
return;
}

this.fire("activated", true);

const distanceMeasurementsPlugin = this.distanceMeasurementsPlugin;
const scene = this.scene;
const cameraControl = distanceMeasurementsPlugin.viewer.cameraControl;
Expand Down Expand Up @@ -307,6 +309,9 @@ export class DistanceMeasurementsMouseControl extends DistanceMeasurementsContro
if (!this._active) {
return;
}

this.fire("activated", false);

if (this.pointerLens) {
this.pointerLens.visible = false;
}
Expand Down

0 comments on commit 1ba8fce

Please sign in to comment.