@blorkfield/overlay-core 0.8.10 → 0.8.11

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.
package/dist/index.cjs CHANGED
@@ -1424,7 +1424,6 @@ var OverlayScene = class {
1424
1424
  this.boundaries = [];
1425
1425
  this.updateCallbacks = [];
1426
1426
  this.animationFrameId = null;
1427
- this.mouse = null;
1428
1427
  this.fonts = [];
1429
1428
  this.fontsInitialized = false;
1430
1429
  this.letterDebugInfo = /* @__PURE__ */ new Map();
@@ -1541,9 +1540,6 @@ var OverlayScene = class {
1541
1540
  this.checkTTLExpiration();
1542
1541
  this.checkDespawnBelowFloor();
1543
1542
  this.updatePressure();
1544
- if (!this.followTargets.has("mouse") && this.mouse) {
1545
- this.followTargets.set("mouse", { x: this.mouse.position.x, y: this.mouse.position.y });
1546
- }
1547
1543
  if (this.grabbedObjectId && this.lastGrabMousePosition) {
1548
1544
  const entry = this.objects.get(this.grabbedObjectId);
1549
1545
  const mouseTarget = this.followTargets.get("mouse");
@@ -1613,7 +1609,6 @@ var OverlayScene = class {
1613
1609
  this.floorSegments = boundariesResult.floorSegments;
1614
1610
  import_matter_js5.default.Composite.add(this.engine.world, this.boundaries);
1615
1611
  this.checkInitialFloorIntegrity();
1616
- this.mouse = import_matter_js5.default.Mouse.create(canvas);
1617
1612
  canvas.addEventListener("mousedown", this.handleMouseDown);
1618
1613
  canvas.addEventListener("mousemove", this.handleMouseMove);
1619
1614
  canvas.addEventListener("mouseup", this.handleMouseUp);
@@ -2392,8 +2387,7 @@ var OverlayScene = class {
2392
2387
  * @returns The ID of the grabbed object, or null if no grabable object at position
2393
2388
  */
2394
2389
  startGrab() {
2395
- const mouseTarget = this.followTargets.get("mouse");
2396
- const position = mouseTarget ?? (this.mouse ? { x: this.mouse.position.x, y: this.mouse.position.y } : null);
2390
+ const position = this.followTargets.get("mouse") ?? null;
2397
2391
  if (!position) return null;
2398
2392
  const bodies = import_matter_js5.default.Query.point(
2399
2393
  import_matter_js5.default.Composite.allBodies(this.engine.world),