tldraw/packages
Mime Čuvalo fa3464ca8c
textfields: fix dragging selected shape behind another (#3498)
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
2024-04-16 15:54:03 +00:00
..
assets ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
editor css more shapes that need transparent behavior (#3497) 2024-04-16 15:19:30 +00:00
namespaced-tldraw New migrations again (#3220) 2024-04-15 12:53:42 +00:00
state [perf] faster signia capture (again) (#3487) 2024-04-16 11:12:01 +00:00
store New migrations again (#3220) 2024-04-15 12:53:42 +00:00
tldraw textfields: fix dragging selected shape behind another (#3498) 2024-04-16 15:54:03 +00:00
tlschema New migrations again (#3220) 2024-04-15 12:53:42 +00:00
tlsync New migrations again (#3220) 2024-04-15 12:53:42 +00:00
utils New migrations again (#3220) 2024-04-15 12:53:42 +00:00
validate New migrations again (#3220) 2024-04-15 12:53:42 +00:00