@blorkfield/overlay-core 0.8.2 → 0.8.3

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
@@ -2376,6 +2376,7 @@ var OverlayScene = class {
2376
2376
  for (const body of bodies) {
2377
2377
  const entry = this.findObjectByBody(body);
2378
2378
  if (entry && entry.tags.includes("grabable")) {
2379
+ this.mouse.button = 0;
2379
2380
  this.mouseConstraint.constraint.bodyB = entry.body;
2380
2381
  this.mouseConstraint.constraint.pointB = {
2381
2382
  x: position.x - entry.body.position.x,
@@ -2393,6 +2394,9 @@ var OverlayScene = class {
2393
2394
  if (this.mouseConstraint) {
2394
2395
  this.mouseConstraint.constraint.bodyB = null;
2395
2396
  }
2397
+ if (this.mouse) {
2398
+ this.mouse.button = -1;
2399
+ }
2396
2400
  }
2397
2401
  /**
2398
2402
  * Get the ID of the currently grabbed object.