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

图片缩放问题 #3

Open
IMChloe96 opened this issue Mar 3, 2021 · 0 comments
Open

图片缩放问题 #3

IMChloe96 opened this issue Mar 3, 2021 · 0 comments

Comments

@IMChloe96
Copy link

组件还是很不错,目前使用遇到两个问题:
1.组件通过鼠标滚轮来缩放,现在业务场景希望增加类似Slider 滑动输入条来控制缩放,请问一下可以接受缩放的最大最小值应该怎么判断呢?代码调用createUtils里面的scale方法进行缩放会出现放大到一定程度后无法再缩小;
2.如果传入图片的比例已经符合裁剪框比例,还是打开时还是会放大显示,需要缩小一下才会贴合裁剪框,可以做成默认适应裁剪框大小吗,或者如果设置初始的缩放比例呢?

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