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

mousewheel factor 设置成 1.1,缩放没到 maxScale 之前画布无法继续放大 #2219

Closed
NewByVector opened this issue Jun 15, 2022 · 2 comments
Labels
type: bug 缺陷 Defects and unexpected behaviors

Comments

@NewByVector
Copy link
Contributor

问题描述

mousewheel factor 设置成 1.1,缩放没到 maxScale 之前画布无法继续放大

重现链接

https://codesandbox.io/s/htsgno

重现步骤

  1. 设置 factor 为 1.1
  2. 缩放画布查看效果

预期行为

画布能缩放到目标级别

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • X6 版本: [1.28.2 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector NewByVector added the type: bug 缺陷 Defects and unexpected behaviors label Jun 15, 2022
@NewByVector
Copy link
Contributor Author

factor 设置成 1.1 比较特殊,按照缩放算法缩放到一定级别后,计算值不再变化,所以可以稍微调整 factor 来解决这个问题。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 10, 2023

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug 缺陷 Defects and unexpected behaviors
Projects
None yet
Development

No branches or pull requests

1 participant