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

OnSnap not working properly #56

Closed
pilootchoum opened this issue Apr 24, 2020 · 1 comment
Closed

OnSnap not working properly #56

pilootchoum opened this issue Apr 24, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pilootchoum
Copy link

Hello,

When trying to prevent the snap from one block using the onsnap function and returning false,
it does not work as expected.

I tried also on the demo page just returning false, and once the bloc is released, it is not attached to the parent one (good), but the dragged block itself stay on the canvas kind of lost.

Attached a screenshot.
image

Then as soon as you try to drag another block, the previous one (the lost one) move to the top of the window.

image

There is no javascript error, but you can see in the dom that the lost/dragged block is added in the dom at the root at the dom, whereas it should simply not be there.

image

@alyssaxuu alyssaxuu added the bug Something isn't working label Apr 24, 2020
@alyssaxuu alyssaxuu self-assigned this Apr 24, 2020
@alyssaxuu
Copy link
Owner

Just fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants