@tldraw/editor 5.5.0-canary.7fffd343ae37 → 5.5.0-canary.831fd7a9731d

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
@@ -392,7 +392,7 @@ var import_uniq = require("./lib/utils/uniq");
392
392
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
393
393
  (0, import_utils.registerTldrawLibraryVersion)(
394
394
  "@tldraw/editor",
395
- "5.5.0-canary.7fffd343ae37",
395
+ "5.5.0-canary.831fd7a9731d",
396
396
  "cjs"
397
397
  );
398
398
  //# sourceMappingURL=index.js.map
@@ -7986,7 +7986,6 @@ class Editor extends import_eventemitter3.default {
7986
7986
  const cameraOptions = this._cameraOptions.__unsafe__getWithoutCapture();
7987
7987
  switch (type) {
7988
7988
  case "pinch": {
7989
- if (cameraOptions.isLocked) return;
7990
7989
  clearTimeout(this._longPressTimeout);
7991
7990
  this.inputs.updateFromEvent(info);
7992
7991
  switch (info.name) {
@@ -8008,6 +8007,7 @@ class Editor extends import_eventemitter3.default {
8008
8007
  }
8009
8008
  case "pinch": {
8010
8009
  if (!inputs.getIsPinching()) return;
8010
+ if (cameraOptions.isLocked) return;
8011
8011
  const {
8012
8012
  point: { z = 1 },
8013
8013
  delta: { x: dx, y: dy }
@@ -8063,7 +8063,7 @@ class Editor extends import_eventemitter3.default {
8063
8063
  const { panSpeed, zoomSpeed } = cameraOptions;
8064
8064
  let wheelBehavior = cameraOptions.wheelBehavior;
8065
8065
  const inputMode = this.user.getUserPreferences().inputMode;
8066
- if (inputMode !== null) {
8066
+ if (inputMode !== null && wheelBehavior !== "none") {
8067
8067
  wheelBehavior = inputMode === "trackpad" ? "pan" : "zoom";
8068
8068
  }
8069
8069
  if (wheelBehavior !== "none") {
@@ -8319,7 +8319,7 @@ class Editor extends import_eventemitter3.default {
8319
8319
  break;
8320
8320
  }
8321
8321
  }
8322
- if (offset) {
8322
+ if (offset && !cameraOptions.isLocked) {
8323
8323
  const bounds = this.getViewportPageBounds();
8324
8324
  const next = bounds.clone().translate(offset.mulV({ x: bounds.w, y: bounds.h }));
8325
8325
  this._animateToViewport(next, { animation: { duration: 320 } });