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

This library breaks when using container-type: inline-size; #609

Open
srcrip opened this issue May 23, 2024 · 0 comments
Open

This library breaks when using container-type: inline-size; #609

srcrip opened this issue May 23, 2024 · 0 comments

Comments

@srcrip
Copy link

srcrip commented May 23, 2024

I know the maintenance of this lib is slightly up in the air, but this has caused me a ton of problems trying to figure this out, so here's the info in case this bites anyone else.

The calculation around dragging the element based on cursor position gets totally broken if you happen to use this inside an element with container-type: inline-size;. No idea why. If someone knows and thinks they could fix it that would be pretty cool. Otherwise, you need to avoid using this with container queries I guess.

This also effects the Shopify draggable library. I'm not really sure why.

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