Is it possible to only allow selection on the border of the target?
quinn280 opened this issue · comments
quinn280 commented
Environments
- Framework name: React
- Framework version: 18.2
- Component name: Selecto
- Component version: 1.22.0
- Testable Address(optional): https://codesandbox.io/s/react-overlay-issue-sjwfjh?file=/src/App.js
Description
Is it possible to only allow selection on the border of the target, and not the center?
My ultimate goal is to have draggable items inside of a resizable box.
My problem right now is that when a user clicks anywhere in the center of the box, it becomes selected.
Daybrush (Younkue Choi) commented
Try making selectableTargets the box's selector.
selectableTargets={".target.box"}
Let me know if you have any additional specs.