daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2.04k stars 82 forks source link

i need select when right click, like window desktop icons #90

Closed WangJM001 closed 2 years ago

WangJM001 commented 2 years ago

Environments

Description

1、when right click on noselect element, cancle other selected and select current element 2、when right click on selected element, nothink happen

like window desktop icons

Thanks !

daybrush commented 2 years ago

@WangJM001

okay. I'll consider it.

daybrush commented 2 years ago

@WangJM001

selecto's new version is released.

preventRightClick prop is added.

Set preventRightClick to false (default: true)

If set to false, you can also click/drag with the right button.

WangJM001 commented 2 years ago

Thanks