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

Straight line problem - horizontal and vertical line #110

Open andrea78 opened 1 year ago

andrea78 commented 1 year ago

Hi Younkue, thank you for this amazing library. The only reason why I am not using Selecto is because of a problem with straight lines. If the line is not straight then there is no problem but if it is straight then I can't move it. This problem occurs in all popular browsers: Chrome, Edge, Opera, Safari and Firefox. I've tested Selecto with Moveable. An example below: A line: Screenshot 2022-11-27 at 21-43-02 Tablica Interaktywna MatMentora Straight lines: Screenshot 2022-11-27 at 21-42-45 Tablica Interaktywna MatMentora Screenshot 2022-11-27 at 21-42-23 Tablica Interaktywna MatMentora

daybrush commented 1 year ago

@andrea78

Oh, I found out that there is a problem with the straight line. It seems that the size was judged to be 0 and the selection was not made.

i will fix. Thank you.

daybrush commented 1 year ago

@andrea78

selecto's new version is released. Check it again.

andrea78 commented 1 year ago

Hi Younkue, I appreciate your great work. After your fix #110 there is a difference. Now draggable works if I move at least two straight lines but if I want to drag or scale or rotate a single straight line it doesn't work anymore. This is also a problem on the Moveable side. I've just opened a new Issue for Moveable.