antvis/G6

元素重叠后,节点拖动事件是否要以委托到指定元素上 #4685

wang21chun posted onGitHub

问题描述

想实现点击文字前的可拖动标识,拖动节点,但现在无法触发节点的拖动事件

重现链接

https://codesandbox.io/s/new

重现步骤

预期行为

指定元素代理事件

平台

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

屏幕截图或视频(可选)

图片

补充说明(可选)

No response


group.addShape(type, cfgs)添加元素时设置draggable:true,

posted by wang21chun almost 2 years ago

Fund this Issue

$0.00
Funded

Pull requests