daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.

Home Page:https://daybrush.com/selecto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to only allow selection on the border of the target?

quinn280 opened this issue · comments

Environments

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.
selecto

My problem right now is that when a user clicks anywhere in the center of the box, it becomes selected.

@quinn280

Try making selectableTargets the box's selector.

selectableTargets={".target.box"}

Let me know if you have any additional specs.