Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag using Moveable on select by Selecto #170

Open
IanDuncanson opened this issue May 15, 2024 · 0 comments
Open

Drag using Moveable on select by Selecto #170

IanDuncanson opened this issue May 15, 2024 · 0 comments

Comments

@IanDuncanson
Copy link

Environments

  • Framework name: React
  • Framework version: 18.2.0
  • Component name: react-selecto
  • Component version: 1.26.3
  • Testable Address(optional):

Description

I am using react-selecto as well as react-moveable, works beautifully, except one use case I can't seem to get the right combination of options of the two libraries to achieve, which is similar to draw.io

On Selecto, I have selectByClick as true, selectFromInside as false and hitRate as 100.

The end result I am after is if I click and drag starting outside any selectable element, selecto goes into its drag select "rubber band" mode, selecting things within its bounds, but if I mouse down within a selectable element it is selected and I can immediately start dragging using moveable. At the moment, I need to mouse up and down (click) the element and then drag as a separate action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant