[fix] handles (#3177)
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
This commit is contained in:
parent
29b82ed123
commit
a9bc79b1c2
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue