We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
有时候还会出现警告 GraphModel.ts:389 不存在id为xxx的节点
GraphModel.ts:389 不存在id为xxx的节点
The text was updated successfully, but these errors were encountered:
出现这个问题的原因是LogicFlow通过监听document上的mouseup获取拖动添加节点时鼠标松开的位置,然后去对应的位置添加这个节点。
mouseup
LogicFlow/packages/core/src/view/behavior/DnD.ts
Lines 39 to 42 in a20bd6f
如果我们自定义拖动面板的时候采用图片作为拖动添加的触发元素(或者其子节点),那么在拖动添加节点的时候,就可能同时拖动图片进画布了。这就会导致鼠标松开的时候,不会触发document上的mouseup事件。所以需要多点击一次才行。
解决办法: 只要保证拖动结束的mouseup能正常触发就行。
Sorry, something went wrong.
纠正一下:dragable:false的单词写错了~正确的是:draggable:false
#185
No branches or pull requests
有时候还会出现警告
GraphModel.ts:389 不存在id为xxx的节点
The text was updated successfully, but these errors were encountered: