@tldraw/editor 5.1.0-next.d83788c14b6f → 5.1.1

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
@@ -380,7 +380,7 @@ var import_uniq = require("./lib/utils/uniq");
380
380
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
381
381
  (0, import_utils.registerTldrawLibraryVersion)(
382
382
  "@tldraw/editor",
383
- "5.1.0-next.d83788c14b6f",
383
+ "5.1.1",
384
384
  "cjs"
385
385
  );
386
386
  //# sourceMappingURL=index.js.map
@@ -8107,7 +8107,10 @@ class Editor extends import_eventemitter3.default {
8107
8107
  inputs.buttons.add(info.button);
8108
8108
  inputs.setIsPointing(true);
8109
8109
  inputs.setIsDragging(false);
8110
- if (!isPenMode && isPen) this.updateInstanceState({ isPenMode: true });
8110
+ if (!isPenMode && isPen) {
8111
+ this.updateInstanceState({ isPenMode: true });
8112
+ this.interrupt();
8113
+ }
8111
8114
  if (info.button === import_constants.STYLUS_ERASER_BUTTON) {
8112
8115
  this._restoreToolId = this.getCurrentToolId();
8113
8116
  this.complete();