Closed mountain-has-tree closed 5 days ago
hi @mountain-has-tree, welcome!
Hi @mountain-has-tree, Please star this repo if you find it useful! Thanks :star:! 你好 @mountain-has-tree。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!
可以改成 graph.on('node:touchstart', ()=>{ }) 移动端
darg-canvas 的内置 Behavior 里面 preventDefault 了,可以基于 内置 Behavior 去掉 preventDefault 试试
This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。
Describe the bug
V4.8.23 在设置
以下为代码,开在G6官网事例页面粘贴生效:
modes.default=['drag-node', 'drag-canvas', 'zoom-canvas']
(或者数组其中一个)后,监听事件graph.on('node:click', ()=>{ })
,点击 node 触发不了事件,无任何反应, 在这样的情况下,如果点击 edge, 会报错:n.hasLocked is not a function
Your Example Website or App
https://codesandbox.io/p/sandbox/vigorous-bose-66kwsp?file=%2Fsrc%2FApp.jsx
Steps to Reproduce the Bug or Issue
Expected behavior
期待在v4的版本中可以修复
Screenshots or Videos
No response
Platform
Additional context
No response