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 Report]: 小地图中监听画布位置变化并重新setView中的限流过小,导致拖拽时会每隔300ms顿一下 #1596

Open
philipxiaoxi opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@philipxiaoxi
Copy link

发生了什么?

小地图中监听画布位置变化并重新setView中的限流过小,导致拖拽时会每隔300ms顿一下。

主要代码是这里:
image

当拖拽时会触发小地图setView,此时限流300ms,如果节点数量较多,本来拖拽是很流畅的,但这里更新setView会顿一下,期望可以支持调整为防抖,可以接收拖拽完毕后再更新小地图或者支持配置限流或防抖以及时间。

感谢~ 看看是否能够采用我的建议来临时优化这个版本的小地图

logicflow/core版本

1.2.27

logicflow/extension版本

1.2.27

logicflow/engine版本

No response

浏览器&环境

Chrome

@philipxiaoxi philipxiaoxi added the bug Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant