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

Positioning issue with transformer using keepRatio prop set to false #798

Open
fredrik-bravo opened this issue Mar 28, 2024 · 1 comment

Comments

@fredrik-bravo
Copy link

The position is changing slightly when transforming and moving past the anchored corner. This can be exaggerated by dragging a corner of a rect around the anchored corner. This issue seems to be specific to react-konva as I can't reproduce it with pure konva.js
and only happens when I set the prop keepRatio to false.

Here is a codepen with the described issue: https://codesandbox.io/p/sandbox/green-morning-rp3hct?file=%2Fsrc%2FApp.js

green-morning-rp3hct.-.CodeSandbox.webm
@lavrton
Copy link
Member

lavrton commented Mar 28, 2024

It looks like it is an effect of boundBoxFunc that you have. There are no issues without it. But I am not sure yet how to update it better.

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

2 participants