@tldraw/editor 4.4.0-canary.d73d4c744055 → 4.4.0-canary.dcd2a8cdc4c2

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-cjs/index.js CHANGED
@@ -372,7 +372,7 @@ var import_uniq = require("./lib/utils/uniq");
372
372
  var import_window_open = require("./lib/utils/window-open");
373
373
  (0, import_utils.registerTldrawLibraryVersion)(
374
374
  "@tldraw/editor",
375
- "4.4.0-canary.d73d4c744055",
375
+ "4.4.0-canary.dcd2a8cdc4c2",
376
376
  "cjs"
377
377
  );
378
378
  //# sourceMappingURL=index.js.map
@@ -7567,7 +7567,9 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
7567
7567
  case "pinch_start": {
7568
7568
  if (inputs.getIsPinching()) return;
7569
7569
  if (!inputs.getIsEditing()) {
7570
- this._selectedShapeIdsAtPointerDown = [...pageState.selectedShapeIds];
7570
+ if (!this._selectedShapeIdsAtPointerDown.length) {
7571
+ this._selectedShapeIdsAtPointerDown = [...pageState.selectedShapeIds];
7572
+ }
7571
7573
  this._didPinch = true;
7572
7574
  inputs.setIsPinching(true);
7573
7575
  this.interrupt();
@@ -7782,7 +7784,6 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
7782
7784
  this.setCurrentTool(this._restoreToolId);
7783
7785
  }
7784
7786
  }
7785
- this._selectedShapeIdsAtPointerDown = [];
7786
7787
  break;
7787
7788
  }
7788
7789
  }