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

How to implement elements snapping to each other functionality? #1017

Open
razmatinyan opened this issue Nov 13, 2023 · 1 comment
Open

How to implement elements snapping to each other functionality? #1017

razmatinyan opened this issue Nov 13, 2023 · 1 comment

Comments

@razmatinyan
Copy link

Hello. Does anyone know how to implement the elements snapping to each other functionality in 1.10.20 version? Didn't find any solution.

@Daniel199438
Copy link

@razmatinyan Look at this fiddle: https://jsfiddle.net/a0knv69j/9/

You just need to add in dynamicTargets the other elements x and y coordinates you want to snap to.
I refresh it on every dragstart to the actual position of my other elements.

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

2 participants