three-cad-viewer 3.1.7 → 3.1.8

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.
@@ -56516,11 +56516,11 @@ class Raycaster {
56516
56516
  onMouseKeyUp = (e) => {
56517
56517
  if (this.raycastMode) {
56518
56518
  if (e.button == MOUSE.LEFT) {
56519
- if (this.lastPosition.equals(this.camera.getPosition())) {
56519
+ if (this.lastPosition.distanceTo(this.camera.getPosition()) < 1e-6) {
56520
56520
  this.callback({ mouse: "left", shift: KeyMapper.get(e, "shift") });
56521
56521
  }
56522
56522
  } else if (e.button == MOUSE.RIGHT) {
56523
- if (this.lastPosition.equals(this.camera.getPosition())) {
56523
+ if (this.lastPosition.distanceTo(this.camera.getPosition()) < 1e-6) {
56524
56524
  this.callback({ mouse: "right" });
56525
56525
  }
56526
56526
  }
@@ -64223,7 +64223,7 @@ class Camera {
64223
64223
  }
64224
64224
  }
64225
64225
 
64226
- const version = "3.1.7";
64226
+ const version = "3.1.8";
64227
64227
 
64228
64228
  class Viewer {
64229
64229
  /**