You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for you library, this is just a question.
I use draggabilly to move several objects in a container and i would like to implement a snap to other elements' top/left coordinates.
I can easily calculate the absolute value of the distance (vertical or horizontal) between the dragged element and another element, but now I need a suggestion:
when this happens (ie the vert/horiz distance is less than a certain amount of pixels), how can I temporary suspend the drag vertically or horizontally (and keep the mouse pointer moving alone till the condition is not true anymore)? Do you think I should fork the library, or I can do it just using the existing methods and settings?
Thank you very much.
C_
[in case you're curious, I am developing a simple app to build football lineups, a beta is visible here]
The text was updated successfully, but these errors were encountered:
Hi, thank you for you library, this is just a question.
I use draggabilly to move several objects in a container and i would like to implement a snap to other elements' top/left coordinates.
I can easily calculate the absolute value of the distance (vertical or horizontal) between the dragged element and another element, but now I need a suggestion:
when this happens (ie the vert/horiz distance is less than a certain amount of pixels), how can I temporary suspend the drag vertically or horizontally (and keep the mouse pointer moving alone till the condition is not true anymore)? Do you think I should fork the library, or I can do it just using the existing methods and settings?
Thank you very much.
C_
[in case you're curious, I am developing a simple app to build football lineups, a beta is visible here]
The text was updated successfully, but these errors were encountered: