求助!为何我的自定义节点和边无法触发点击事件?只有画布canvas能响应点击事件?? #7544
Unanswered
Hugobuendiya
asked this question in
Q&A
Replies: 1 comment
-
|
我搜索AI的解答说可能是pointerEvents的设置问题。我把节点和边都设置了pointerEvents:all后还是无法解决。点击节点和边时没有任何打印,包括CommonEvent.CLICK的打印也无法触发 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
这是我仿照文档写的一个自定义交互behavior,发现点击空白画布的时候可以触发打印:console.log('CanvasEvent',event),console.log('CommonEvent',event)。
但是点击节点和边的时候,NodeEvent和EdgeEvent还有CommonEvent的点击都无法触发,这是为啥呢??
Beta Was this translation helpful? Give feedback.
All reactions