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

画布滚动缩放和节点移动功能异常 #516

Open
zhibo-wang opened this issue Sep 19, 2023 · 1 comment
Open

画布滚动缩放和节点移动功能异常 #516

zhibo-wang opened this issue Sep 19, 2023 · 1 comment

Comments

@zhibo-wang
Copy link

Describe the bug

使用了useEffect,graphin画布滚动缩放、鼠标左键按住节点移动,都失效;不使用useEffect,滚动缩放和节点移动都正常。

Your Example Website or App

https://stackblitz.com/edit/stackblitz-starters-eg3h5m?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

1.函数组件里使用useEffect,画布滚动缩放、鼠标左键按住节点移动都失效;
2.注释useEffect相关代码,刷新应用,画布滚动缩放、鼠标左键按住节点移动都恢复正常。

Expected behavior

在同一函数组件中,使用useEffect等hooks不影响graphin画布的滚动缩放和节点移动

Screenshots or Videos

No response

Platform

Additional context

No response

@zhibo-wang
Copy link
Author

初步原因已排查到,react渲染模式concurrent切换到legacy,就不会出现该问题

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