You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Scalables, we've noticed a glitch. This occurs when the Scalable has a zero width or height. Even though the dimensions still appear correct, the position exhibits an odd offset. Once this kind of scale is persisted, it seems to break the Scalable completely. It becomes impossible to return it to a non-zero height/width, and it assumes a random position when a user attempts to rescale it.
(Position for non-zero heights is marked with yellow cross)
Interestingly, we don't encounter this issue when working with Resizables.
We tried to implement a workaround using Resizables but were unable to get the flipping over the axis to work.
Has anyone else been able to successfully implement this?
The text was updated successfully, but these errors were encountered:
Hello @daybrush
I have tested it both in the sandbox and in our project. The bug no longer occurs in either.
It's totally impressive how fast you fixed the bug and released the new release.
Thank you very much.
Environments
Framework name: React
Framework version: 18.2
Moveable Component version: 0.48.0
Testable Address: https://codesandbox.io/s/react-moveable-forked-6g9109?file=/src/App.tsx
Description
When working with Scalables, we've noticed a glitch. This occurs when the Scalable has a zero width or height. Even though the dimensions still appear correct, the position exhibits an odd offset. Once this kind of scale is persisted, it seems to break the Scalable completely. It becomes impossible to return it to a non-zero height/width, and it assumes a random position when a user attempts to rescale it.

(Position for non-zero heights is marked with yellow cross)
Interestingly, we don't encounter this issue when working with Resizables.
We tried to implement a workaround using Resizables but were unable to get the flipping over the axis to work.
Has anyone else been able to successfully implement this?
The text was updated successfully, but these errors were encountered: