This PR is a quick follower to fix handles

### 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
pull/3170/head
Steve Ruiz 2024-03-16 15:00:46 +00:00 zatwierdzone przez GitHub
rodzic 29b82ed123
commit a9bc79b1c2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -243,6 +243,7 @@ function HandlesWrapperInner({ shapeId }: { shapeId: TLShapeId }) {
const transform = useValue('handles transform', () => editor.getShapePageTransform(shapeId), [
editor,
shapeId,
])
const handles = useValue(
@ -275,7 +276,7 @@ function HandlesWrapperInner({ shapeId }: { shapeId: TLShapeId }) {
.sort((a) => (a.type === 'vertex' ? 1 : -1))
)
},
[editor, zoomLevel, isCoarse]
[editor, zoomLevel, isCoarse, shapeId]
)
if (!Handles || !handles || !transform) {