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
2k stars 81 forks source link

Can not select node on click (only with dragging blue box) #130

Closed zsoerenm closed 1 year ago

zsoerenm commented 1 year ago

Environments

Description

I'm not able to select a single node on click event. Nodes can only be selected when dragging the blue box.

https://user-images.githubusercontent.com/375486/234387641-b7563202-3a0c-4df1-968a-55933750aacf.mp4

In the video I try to select the element by clicking, but it doesn't get selected.

See testable address.

daybrush commented 1 year ago

@zsoerenm

Try updating moveable to the new version.

zsoerenm commented 1 year ago

Thanks for looking into this! I updated moveable to version 0.47.0, but I'm still not able to select a single target by clicking on it: https://stackblitz.com/edit/lit-element-typescript-demo-xpmydt?file=package.json

daybrush commented 1 year ago

@zsoerenm

selecto's new version is released. (selecto@1.22.3)

Try it again.

zsoerenm commented 1 year ago

Yes, this does work now. Thank you very much!