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

Can the magnetic mode be realized? #120

Open
MineYuanlu opened this issue Feb 11, 2023 · 0 comments
Open

Can the magnetic mode be realized? #120

MineYuanlu opened this issue Feb 11, 2023 · 0 comments

Comments

@MineYuanlu
Copy link

I have an idea that when I drag an element, it can be "adsorbed" when it is close to another element.
I try to judge whether the distance is less than the fixed value on the onDrag, set the grid and position when approaching, and cancel the grid when leaving. But I failed. Setting the position seems to have no effect. I don't know why. At the same time, the grid doesn't seem to be perfectly aligned
@neodrag/svelte: 2.0.3

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