Allow click selection of locked shapes without including them in drag selection
️: The selectLockedShapes: true option, it doesn’t behave exactly like we would like.
In short what we want:
- Click-selecting locked shapes should be possbile.
- Drag-selecting (lasso) a set of locked/unlocked shapes should only select the unlocked shapes.
Would it be possible to change selectLockedShapes by working this way by default, or have another option that only applies to “click-select”?
The SDK should support selecting locked shapes by clicking them while excluding locked shapes from drag selection. Dragging a selection over a mixture of locked and unlocked shapes should select only the unlocked shapes. Either changing the behavior of selectLockedShapes: true or adding a separate option for click selection would meet the request; no preference between those approaches has been established.
Open questions
- Should locked shapes be excluded from both rectangular drag selection and freehand lasso selection? Yes
- Should Shift-click also allow adding locked shapes to an existing selection? Yes
Confidence: 85%, ready to get started; the remaining questions refine interaction details.
Source: tldraw/tldraw