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

Bug caused by scaling when aspectratio is true #159

Open
zcxiaocai opened this issue Aug 29, 2022 · 1 comment
Open

Bug caused by scaling when aspectratio is true #159

zcxiaocai opened this issue Aug 29, 2022 · 1 comment

Comments

@zcxiaocai
Copy link

Set aspectratio to true, dynamically bind X and y, and update X and Y in the resizestop event. When x and y are equal, it is normal. When x and y are not equal, the resizestop event will always be triggered

@SwanValues
Copy link

动态绑定x、y、w、h都会存在你所说的问题,我的建议是使用变量将x、y、w、h存起来,组件不再使用动态绑定,事件也能正确触发,x、y、w、h也可以实时更新。

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