@tldraw/editor 4.5.3 → 4.5.5

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
@@ -370,7 +370,7 @@ var import_LocalIndexedDb = require("./lib/utils/sync/LocalIndexedDb");
370
370
  var import_uniq = require("./lib/utils/uniq");
371
371
  (0, import_utils.registerTldrawLibraryVersion)(
372
372
  "@tldraw/editor",
373
- "4.5.3",
373
+ "4.5.5",
374
374
  "cjs"
375
375
  );
376
376
  //# sourceMappingURL=index.js.map
@@ -402,6 +402,10 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
402
402
  this.disposables.add(() => this.textMeasure.dispose());
403
403
  this.fonts = new import_FontManager.FontManager(this, fontAssetUrls);
404
404
  this._tickManager = new import_TickManager.TickManager(this);
405
+ this.disposables.add(() => {
406
+ this.off("tick", this._decayCameraStateTimeout);
407
+ this._setCameraState("idle");
408
+ });
405
409
  this.inputs = new import_InputsManager.InputsManager(this);
406
410
  class NewRoot extends import_RootState.RootState {
407
411
  static initial = initialState ?? "";