selecto icon indicating copy to clipboard operation
selecto copied to clipboard

How to disable drag events only while keeping click events?

Open Larthas opened this issue 1 year ago • 1 comments

Environments

  • Framework name: react
  • Framework version:
  • Component name:
  • Component version:
  • Testable Address(optional):

Description

I'm trying to use Selecto in my project and I'd like to disable drag events while keeping click events active. If I use "dragCondition" to return false, the whole Selecto has been disabled.

Larthas avatar Mar 23 '23 07:03 Larthas

@Larthas

Try calling the e.preventDrag() function in the onDragStart event.

daybrush avatar Mar 23 '23 17:03 daybrush