fa3464ca8c
The fix here was that we need to check if we're editing before dispatching the pointer down event. This is some leftover DNA from code when we had textareas always present and when tl-svg-container/tl-html-container wasn't around. The `setPointerCapture` was originally fixing a bug where dragging a shape using the textlabel as the origin would start to breakdown when you got to UI toolbar/panel. Also, turns out we don't need the `setPointerCapture` anymore because of the same reason. ### Change Type <!-- ❗ Please select a 'Scope' label ❗️ --> - [x] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [ ] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff <!-- ❗ Please select a 'Type' label ❗️ --> - [x] `bugfix` — Bug fix - [ ] `feature` — New feature - [ ] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know |
||
---|---|---|
.. | ||
assets | ||
editor | ||
namespaced-tldraw | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
tlsync | ||
utils | ||
validate |