bruce-cesium 7.5.4 → 7.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12395,8 +12395,15 @@
12395
12395
  createIfMissing: params.createIfMissing !== false
12396
12396
  };
12397
12397
  const doc = this.viewer.container.ownerDocument;
12398
- doc.addEventListener("pointermove", this.CheckLabelHoverBounds, true);
12399
- this.viewer.container.addEventListener("pointerleave", this.CheckLabelHoverBounds);
12398
+ // Only a label following the cursor should go when the cursor leaves the canvas.
12399
+ if (params.position) {
12400
+ doc.addEventListener("pointermove", this.CheckLabelHoverBounds, true);
12401
+ this.viewer.container.addEventListener("pointerleave", this.CheckLabelHoverBounds);
12402
+ }
12403
+ else {
12404
+ doc.removeEventListener("pointermove", this.CheckLabelHoverBounds, true);
12405
+ this.viewer.container.removeEventListener("pointerleave", this.CheckLabelHoverBounds);
12406
+ }
12400
12407
  doc.defaultView.addEventListener("blur", this.ClearLabelHover);
12401
12408
  this.SyncLabelHover();
12402
12409
  this.viewer.scene.requestRender();
@@ -51170,7 +51177,7 @@ void main() {
51170
51177
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
51171
51178
  })(exports.StyleUtils || (exports.StyleUtils = {}));
51172
51179
 
51173
- const VERSION = "7.5.4";
51180
+ const VERSION = "7.5.5";
51174
51181
  /**
51175
51182
  * Updates the environment instance used by bruce-cesium to one specified.
51176
51183
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.