-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
请问节点做了自定义拖拽功能的情况下如何和画布的拖拽平移功能共存? #4473
Comments
👋 @cha-mi Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
@Yeti-xxx @cha-mi 我这边也遇到问题,开启了画布可拖动和节点可拖动时,我这边根据是否按下shift键去禁用画布拖动和节点可拖动,发现每次都需要拖动一次画布后才能正常禁用graph = new Graph({ |
问题描述
请问节点做了自定义拖拽功能的情况下如何和画布的拖拽平移功能共存,希望可以提供一下思路
重现链接
https://codesandbox.io/p/sandbox/daraggable-forked-jhxch5
重现步骤
拖拽节点画布会和节点一起平移了
预期行为
希望是拖拽节点的时候可以画布静止,不和节点拖拽行为冲突,应该如何去实现
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: