tldraw 5.2.0-next.a6104dd18d03 → 5.2.0-next.cd4a35fc06d5

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/DOCS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # tldraw Documentation
2
2
 
3
- Version: `5.2.0-next.a6104dd18d03`
3
+ Version: `5.2.0-next.cd4a35fc06d5`
4
4
 
5
5
  This file is generated during package publishing from the tldraw docs content for this exact package version.
6
6
 
package/RELEASE_NOTES.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Releases
2
2
 
3
- Version: `5.2.0-next.a6104dd18d03`
3
+ Version: `5.2.0-next.cd4a35fc06d5`
4
4
 
5
5
  This file is generated during package publishing from the tldraw release notes content for this exact package version.
6
6
 
package/dist-cjs/index.js CHANGED
@@ -650,7 +650,7 @@ var import_buildFromV1Document = require("./lib/utils/tldr/buildFromV1Document")
650
650
  var import_file = require("./lib/utils/tldr/file");
651
651
  (0, import_editor.registerTldrawLibraryVersion)(
652
652
  "tldraw",
653
- "5.2.0-next.a6104dd18d03",
653
+ "5.2.0-next.cd4a35fc06d5",
654
654
  "cjs"
655
655
  );
656
656
  //# sourceMappingURL=index.js.map
@@ -22,10 +22,10 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const version = "5.2.0-next.a6104dd18d03";
25
+ const version = "5.2.0-next.cd4a35fc06d5";
26
26
  const publishDates = {
27
27
  major: "2026-05-06T16:28:18.473Z",
28
- minor: "2026-06-11T16:27:00.231Z",
29
- patch: "2026-06-11T16:27:00.231Z"
28
+ minor: "2026-06-12T08:51:03.446Z",
29
+ patch: "2026-06-12T08:51:03.446Z"
30
30
  };
31
31
  //# sourceMappingURL=version.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/lib/ui/version.ts"],
4
- "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.a6104dd18d03'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-11T16:27:00.231Z',\n\tpatch: '2026-06-11T16:27:00.231Z',\n}\n"],
4
+ "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.cd4a35fc06d5'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-12T08:51:03.446Z',\n\tpatch: '2026-06-12T08:51:03.446Z',\n}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -635,7 +635,7 @@ import {
635
635
  } from "./lib/utils/tldr/file.mjs";
636
636
  registerTldrawLibraryVersion(
637
637
  "tldraw",
638
- "5.2.0-next.a6104dd18d03",
638
+ "5.2.0-next.cd4a35fc06d5",
639
639
  "esm"
640
640
  );
641
641
  export {
@@ -1,8 +1,8 @@
1
- const version = "5.2.0-next.a6104dd18d03";
1
+ const version = "5.2.0-next.cd4a35fc06d5";
2
2
  const publishDates = {
3
3
  major: "2026-05-06T16:28:18.473Z",
4
- minor: "2026-06-11T16:27:00.231Z",
5
- patch: "2026-06-11T16:27:00.231Z"
4
+ minor: "2026-06-12T08:51:03.446Z",
5
+ patch: "2026-06-12T08:51:03.446Z"
6
6
  };
7
7
  export {
8
8
  publishDates,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/lib/ui/version.ts"],
4
- "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.a6104dd18d03'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-11T16:27:00.231Z',\n\tpatch: '2026-06-11T16:27:00.231Z',\n}\n"],
4
+ "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.cd4a35fc06d5'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-12T08:51:03.446Z',\n\tpatch: '2026-06-12T08:51:03.446Z',\n}\n"],
5
5
  "mappings": "AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tldraw",
3
3
  "description": "A tiny little drawing editor.",
4
- "version": "5.2.0-next.a6104dd18d03",
4
+ "version": "5.2.0-next.cd4a35fc06d5",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -63,9 +63,9 @@
63
63
  "@tiptap/pm": "^3.12.1",
64
64
  "@tiptap/react": "^3.12.1",
65
65
  "@tiptap/starter-kit": "^3.12.1",
66
- "@tldraw/driver": "5.2.0-next.a6104dd18d03",
67
- "@tldraw/editor": "5.2.0-next.a6104dd18d03",
68
- "@tldraw/store": "5.2.0-next.a6104dd18d03",
66
+ "@tldraw/driver": "5.2.0-next.cd4a35fc06d5",
67
+ "@tldraw/editor": "5.2.0-next.cd4a35fc06d5",
68
+ "@tldraw/store": "5.2.0-next.cd4a35fc06d5",
69
69
  "classnames": "^2.5.1",
70
70
  "idb": "^7.1.1",
71
71
  "lz-string": "^1.5.0",
@@ -1,9 +1,9 @@
1
1
  // This file is automatically generated by internal/scripts/refresh-assets.ts.
2
2
  // Do not edit manually. Or do, I'm a comment, not a cop.
3
3
 
4
- export const version = '5.2.0-next.a6104dd18d03'
4
+ export const version = '5.2.0-next.cd4a35fc06d5'
5
5
  export const publishDates = {
6
6
  major: '2026-05-06T16:28:18.473Z',
7
- minor: '2026-06-11T16:27:00.231Z',
8
- patch: '2026-06-11T16:27:00.231Z',
7
+ minor: '2026-06-12T08:51:03.446Z',
8
+ patch: '2026-06-12T08:51:03.446Z',
9
9
  }
@@ -1,3 +1,4 @@
1
+ import { Vec } from '@tldraw/editor'
1
2
  import { TestEditor } from './TestEditor'
2
3
 
3
4
  describe('with rightClickPanning enabled (default)', () => {
@@ -17,6 +18,16 @@ describe('with rightClickPanning enabled (default)', () => {
17
18
  expect(editor.inputs.getIsPanning()).toBe(false)
18
19
  })
19
20
 
21
+ it('does not zoom when momentum panning on release', () => {
22
+ editor.pointerDown(100, 100, { button: 2 })
23
+ editor.pointerMove(200, 200)
24
+ expect(editor.inputs.getIsPanning()).toBe(true)
25
+ editor.inputs.setPointerVelocity(new Vec(1, 1))
26
+ editor.pointerUp(200, 200, { button: 2 }).forceTick()
27
+
28
+ expect(editor.getCamera().z).toBe(1)
29
+ })
30
+
20
31
  it('does not pan on a static right-click', () => {
21
32
  editor.pointerDown(100, 100, { button: 2 })
22
33
  editor.pointerUp(100, 100, { button: 2 })