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

why when drag edge label can't trigger edge:drag event #4612

Closed
wpsumsun opened this issue Jun 8, 2023 · 3 comments · Fixed by #4636
Closed

why when drag edge label can't trigger edge:drag event #4612

wpsumsun opened this issue Jun 8, 2023 · 3 comments · Fixed by #4636

Comments

@wpsumsun
Copy link

wpsumsun commented Jun 8, 2023

问题描述

拖拽边的文本是无法触发边的拖拽事件

重现链接

重现步骤

预期行为

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@pomelo-nwu
Copy link
Member

@wpsumsun 还麻烦给个codesandbox 方便复现问题。「拖拽边的文本是无法触发边的拖拽事件」我理解事件的触发绑定在边的keyshape上而非 label 上

@wpsumsun
Copy link
Author

wpsumsun commented Jun 9, 2023

@wpsumsun 还麻烦给个codesandbox 方便复现问题。「拖拽边的文本是无法触发边的拖拽事件」我理解事件的触发绑定在边的keyshape上而非 label 上

@pomelo-nwu https://codesandbox.io/s/elastic-snowflake-6nvmzp?file=/src/App.vue
当我的拖拽点是在边的文本上时,无法触发drag或者edge:drag事件,但是可以触发edge:mousedown等事件

@Yanyan-Wang
Copy link
Contributor

应该是因为内置实现的时候没有给边的文本图形加上 draggable: true,下个小版本加一下

Yanyan-Wang added a commit that referenced this issue Jun 13, 2023
…ile clicking back button on timebar when the slider is already on the start, closes: #4598; docs: scrollNode demo drag node problem, closes: #4626;
@Yanyan-Wang Yanyan-Wang mentioned this issue Jun 13, 2023
Yanyan-Wang added a commit that referenced this issue Jun 13, 2023
* fix: edge label is not draggable, closes: #4612; fix: error occurs while clicking back button on timebar when the slider is already on the start, closes: #4598; docs: scrollNode demo drag node problem, closes: #4626;

* chore: update layout version
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

Successfully merging a pull request may close this issue.

3 participants