Tldraw/packages/tldraw/src/lib/shapes/shared
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
..
freehand Faster selection / erasing (#3454) 2024-04-13 13:30:30 +00:00
BrokenAssetIcon.tsx Show a broken image for files without assets (#2990) 2024-03-01 18:16:27 +00:00
HyperlinkButton.tsx tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
ShapeFill.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
SvgTextLabel.tsx Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
TextHelpers.ts license: make them not be scrubbed out in code munging (#2976) 2024-02-28 10:45:49 +00:00
TextLabel.tsx Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
createTextJsxFromSpans.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
default-shape-constants.ts textfields [1 of 3]: add text into speech bubble; also add rich text example (#3050) 2024-03-27 09:33:48 +00:00
defaultStyleDefs.tsx Fix some tests (#3403) 2024-04-09 15:42:54 +00:00
getBrowserCanvasMaxSize.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
getPerfectDashProps.ts tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
legacyProps.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
polygon-helpers.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
resizeBox.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
resizeScaled.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
rotated-box-shadow.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
useColorSpace.tsx tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
useEditableText.ts textfields: fix dragging selected shape behind another (#3498) 2024-04-16 15:54:03 +00:00
useForceSolid.ts No impure getters pt6 (#2218) 2023-11-14 11:57:43 +00:00
usePrefersReducedMotion.tsx tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00