Skip to content

[pull] main from tldraw:main#591

Merged
pull[bot] merged 1 commit into
code:mainfrom
tldraw:main
Jun 14, 2026
Merged

[pull] main from tldraw:main#591
pull[bot] merged 1 commit into
code:mainfrom
tldraw:main

Conversation

@pull

@pull pull Bot commented Jun 14, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

In order to keep selection chrome consistent while you point at selected
shapes and selection handles, this PR aligns the relevant overlay
visibility states.

Previously, when an arrow bound to two shapes was selected, pressing
down on its body would immediately show endpoint handles, but the dashed
binding preview line would only appear on pointer up or long press. The
two overlays disagreed about `select.pointing_shape`, so the handles
appeared without their accompanying preview line. This PR hides selected
shape handles during that state so both overlays appear together on
pointer up or when a long press promotes the gesture into translating.

This PR also keeps selected shape indicators visible while pointing
resize and rotate selection handles. `ShapeIndicatorOverlayUtil` already
handled the older `select.pointing_handle` state, but selection resize
and rotate handles use `select.pointing_resize_handle` and
`select.pointing_rotate_handle`, so indicators disappeared as soon as
those handles were pressed.

### Change type

- [x] `bugfix`

### Test plan

1. Create an arrow bound to two shapes.
2. Select the arrow, then press and hold on its body.
3. While holding, no endpoint handles should be shown, matching the
hidden dashed preview line.
4. Release, or long press to start translating; handles and the dashed
preview should appear together.
5. Select a shape, then press a resize or rotate selection handle.
6. While holding the handle before dragging, the selected shape
indicator should remain visible.

- [x] Unit tests

### Release notes

- Fix selected shape handles appearing on pointer down before the arrow
binding preview.
- Fix selected shape indicators disappearing while pressing resize and
rotate selection handles.

### Code changes

| Section   | LOC change |
| --------- | ---------- |
| Core code | +11 / -3   |
| Tests     | +54 / -2   |
@pull pull Bot locked and limited conversation to collaborators Jun 14, 2026
@pull pull Bot added the ⤵️ pull label Jun 14, 2026
@pull pull Bot merged commit 105877b into code:main Jun 14, 2026
@pull pull Bot had a problem deploying to bemo-canary June 14, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-production June 14, 2026 09:13 Failure
@pull pull Bot had a problem deploying to bemo-canary June 14, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging June 14, 2026 09:13 Failure
@pull pull Bot had a problem deploying to vsce publish June 14, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging June 14, 2026 09:13 Error
@pull pull Bot had a problem deploying to deploy-staging June 15, 2026 01:01 Failure
@pull pull Bot temporarily deployed to e2e-dotcom June 15, 2026 02:38 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant