-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
设置缩放级别时,添加参数用来控制是否需要立刻缩放控件 #227
base: main
Are you sure you want to change the base?
Conversation
Automatic translation:
|
已经成功收到您的邮件
|
The reason the scale is performed is, because the current zoom level exceeds the new max/min exceeds. If you don't want to apply the bounds set by the user, you should wait before you set the user input in the |
我目前遇到的问题是:根据子view的不同状态实时调节用户可以手动放大的最大级别,而这个调节对于用户来讲,是无感的,这就意味着在用户没有操作的情况下,显示画面上不可以自动调整大小,具体场景如下: |
Please use something like deepl.com to translate your message, since we cannot help you otherwise. Automatic translation of the last message:
I still don't understand the problem. Given the zoom is currently at 2 and in state A, If you only want to adjust zoom limits after user interaction, then simply wait for user interaction before applying the boundaries. If you want to remember zoom level between states A and B, simply apply the zoom level in code when the user switches states, or touches the screen f.ex.. I don't see how it is beneficial or even necessary to leave the engine in an invalid state 🤔 |
我们的项目中遇到的需求,可以动态修改最大缩放级别,但是在当前源码中,修改缩放级别后,内部view会立刻执行缩放操作,因此加上参数后可以用来控制是否立刻进行缩放