cb6031f245
Allows you to start brush selecting shapes on top of a locked shapes. In this case we treat the click on top of the locked shape as if we clicked on the canvas (we transition from `idle` -> `pointing_canvas`). Fixes https://github.com/tldraw/tldraw/issues/2158 Before: https://github.com/tldraw/tldraw/assets/2523721/7d6eb237-e084-4c40-b777-21d4a67fc796 After: https://github.com/tldraw/tldraw/assets/2523721/0a73d1da-8250-4ba0-90ee-47d3e794a813 ### 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. Add a locked shape (for geo shape it should have some background) 2. Add a few shapes on top of that shape. 3. Start draging on top of the locked shape. You should be able to brush select other shapes. - [x] Unit Tests - [ ] End to end tests ### Release Notes - Allows brush selecting when you start it on top of a locked shape. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
utils | ||
validate |