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

缩小后,调用fitView或fitCenter 效果不正确 #5943

Closed
zhangsai521314 opened this issue Jun 26, 2024 · 1 comment
Closed

缩小后,调用fitView或fitCenter 效果不正确 #5943

zhangsai521314 opened this issue Jun 26, 2024 · 1 comment
Labels

Comments

@zhangsai521314
Copy link

Describe the bug / 问题描述

缩小画布后再多次点击fitView和fitCenter得不到想要的效果,节点元素会飞出画布外面

Reproduction link / 重现链接

https://stackblitz.com/edit/react-t3qewq?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

1:使用鼠标缩小画布2次
2:点击fitCenter2次
3:点击fitView1次
4:点击fitCenter1次,无效果。

另外也缩放后随机点击fitCenter和fitView测试效果

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Firefox

Additional context / 补充说明

No response

@Aarebecca
Copy link
Contributor

初步分析应该是视口动画导致异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants