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

Collision detection should use transformed layouts for droppables #9

Open
martinpengellyphillips opened this issue Jul 11, 2021 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@martinpengellyphillips
Copy link
Contributor

Currently the original layout is used for droppable collision detection, but this can cause unnatural behaviour. For example, when sorting items of different heights.

@martinpengellyphillips martinpengellyphillips added bug Something isn't working enhancement New feature or request labels Jul 11, 2021
@hnagrath09
Copy link
Contributor

I was trying to use vertical sorting with draggables of different heights. It seems like this edge is not resolved yet. Draggables with larger heights are overlapped on top of other items.

Reproduction: https://codesandbox.io/s/hardcore-shtern-wlexdo?file=/src/sortable.tsx

@martinpengellyphillips
Copy link
Contributor Author

Yes. I had some support for that, but removed it to revisit the problem more holistically (see #32).

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

No branches or pull requests

2 participants