Tldraw/packages
Mitja Bezenšek 6bd7f4fcc9
Allow dragging on top of locked shapes. (#2337)
This PR allows dragging a selection on top of a locked shape. This
should work when clicking inside of the selection, but not directly on a
shape.

Before:


https://github.com/tldraw/tldraw/assets/2523721/53583ae9-9ed7-455e-bdc4-ba13804dd8a3

After:


https://github.com/tldraw/tldraw/assets/2523721/81d8f8bf-5474-4a09-abac-75059a089851



Fixes https://github.com/tldraw/tldraw/issues/2316
Fixes https://github.com/tldraw/tldraw/issues/2315

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Create a big shape and lock it.
2. Create two shapes on top of the locked shape and select them.
3. Start dragging the selected shapes by clicking inside the selection
(but not directly on any of the shapes). This should allow you to
translate the selection.
4. Should also work if the shapes are behind the locked shape.

- [x] Unit Tests
- [ ] End to end tests

### Release Notes

- Allow translating of shapes on top of a locked shape by clicking
inside of selection and moving the mouse.
2023-12-19 10:40:50 +00:00
..
assets Lokalise: Translations update (#2342) 2023-12-19 10:33:17 +00:00
editor Remove deprecated getters (#2333) 2023-12-19 10:39:58 +00:00
state Remove deprecated getters (#2333) 2023-12-19 10:39:58 +00:00
store Prevent diff mutation (#2336) 2023-12-18 20:18:31 +00:00
tldraw Allow dragging on top of locked shapes. (#2337) 2023-12-19 10:40:50 +00:00
tlschema Lokalise: Translations update (#2342) 2023-12-19 10:33:17 +00:00
utils Update CHANGELOG.md [skip ci] 2023-12-12 14:50:43 +00:00
validate Update CHANGELOG.md [skip ci] 2023-12-12 14:50:43 +00:00