antvis/G6

调用registerBehavior自定义behavior的时候,直接使用drag,dragstart,dragend不触发 #4421

lavenderMF posted onGitHub

问题描述

image 调用registerBehavior自定义behavior的时候,直接使用drag,dragstart,dragend不触发, 同时发现官方文档https://g6.antv.antgroup.com/manual/middle/states/default-behavior#brush-select 缺少参数includeCombos image

重现链接

https://g6.antv.antgroup.com/zh/examples/interaction/customBehavior/#dragCanvasTwoFingers

重现步骤

https://g6.antv.antgroup.com/zh/examples/interaction/customBehavior/#dragCanvasTwoFingers 官方自定义交互直接getEvents添加dragstart

预期行为

drag,dragstart,dragend触发

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded

Pull requests