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

Stamped element can be overlapped by dragged element #526

Open
EnricoSottile opened this issue May 20, 2019 · 2 comments
Open

Stamped element can be overlapped by dragged element #526

EnricoSottile opened this issue May 20, 2019 · 2 comments
Labels

Comments

@EnricoSottile
Copy link

EnricoSottile commented May 20, 2019

Hello,
I'm keeping a few blocks fixed in position, so that calling layout() or adding/removing elements does not move them, while others shifts around.
It works correctly with the stamp method.

Adding Draggabilly break this behavior by overlapping.

Steps to reproduce:

  1. init Packery and Draggabilly as outlined in the instructions
  2. stamp a Packery element so that it's fixed in position
  3. drag an item over it and release

Test case: https://codepen.io/anon/pen/arLByQ
(Only added stamping ability to the original demo: https://codepen.io/desandro/pen/aGvIq)

I understand there's no collision detection inside draggabilly, but this seems more a Packery related issue to me.
Thanks

Edit: The same problem happens with jquery draggable

@desandro
Copy link
Member

Thanks for reporting this issue. This is indeed a bug. I'll have to take a look.

Here's a demo that demonstrates the problem a bit more clearly: https://codepen.io/desandro/pen/2abd0855b90c726e537c3923ec1b011e

@desandro desandro added the bug label May 26, 2019
@mukesh-n-crest
Copy link

mukesh-n-crest commented Oct 1, 2019

I'm also facing the same issue in one of my project and the same case is also not working on the official website 's demo too

for reference: https://www.screencast.com/t/ka9ar2Im

any update about this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants