Closed yuri-dzabaev closed 1 year ago
@yuri-dzabaev
croact-moveable
0.2.0@moveable/helper
0.1.2lit-moveable
0.23.0moveable
0.46.0preact-moveable
0.48.0react-moveable
0.49.0svelte-moveable
0.38.0vue-moveable
2.0.0-beta.64vue3-moveable
0.21.0ngx-moveable
0.43.0moveable's new version is released. Try it again.
thanks @daybrush ! seems ok for fixed width container, but when the "root" container has a width (or/and height) of 100%, the error seems to be reproduced
I have updated the repro link (when the width of the container is set to 100% then the value of width can be a float, so just for reproduce the issue I set the width to 700.2px manually) https://codesandbox.io/s/nifty-snyder-721im8?file=/src/App.js
@yuridzabaev
thanks. The delta calculation has been reversed and unnecessary calculations have been removed.
Test with version 0.49.1.
@daybrush works perfect, thank you! 💪
Environments
Description
Hi @daybrush , thanks a lot for your great work 🙏 I have a centered container with an odd width. And snappable element got half pixel position X (0.5 instead of 0). How can I fix it? (its ok without justifyContent: "center", but I need to center the container)