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

create-edge交互 #5721

Open
fanyanke opened this issue May 10, 2024 · 0 comments
Open

create-edge交互 #5721

fanyanke opened this issue May 10, 2024 · 0 comments

Comments

@fanyanke
Copy link

问题描述

node:click交互可以通过touchstart等事件间接处理,但是这个内置的create-edge看了源码也是监听了click事件,导致移动设备不触发,有什么解决方案吗?

重现链接

https://g6.antv.antgroup.com/examples/interaction/setMode#setMode

重现步骤

重现链接是用的自定义交互实现创建边,pc点击节点正常展示边线且可随鼠标移动,切换到移动设备后点击节点边线不出现但可正常连接边线。
我使用的内置的create-edge方式,移动设备点击节点不出现边线并且不能正常连接

预期行为

移动端与pc端都可点击节点出现边线并跟随手指或鼠标移动

平台

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

屏幕截图或视频(可选)

98f8b72110464f2ab88c73014cb0418

c582dd297fdbcfedc55bdafa5f4d2d9

补充说明(可选)

No response

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

No branches or pull requests

1 participant