Tldraw/packages/tldraw/src/lib/shapes
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
..
arrow Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
bookmark Add url validation (#2428) 2024-01-09 10:49:57 +00:00
draw Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
embed Display none for culled shapes (#3291) 2024-04-05 13:23:02 +00:00
frame Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
geo Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
highlight React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
image Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
line Faster selection / erasing (#3454) 2024-04-13 13:30:30 +00:00
note stickies: a bit of fuzziness when calculating certain text (#3493) 2024-04-16 14:37:20 +00:00
shared textfields: fix dragging selected shape behind another (#3498) 2024-04-16 15:54:03 +00:00
text Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
video React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00