G6 icon indicating copy to clipboard operation
G6 copied to clipboard

默认行为drag-combo没有触发shouldEnd事件

Open ZTao-z opened this issue 9 months ago • 0 comments

Describe the bug

开启drag-combo,通过拖动combo内的空白区域调整combo位置,鼠标松开后没有触发shouldEnd

Your Example Website or App

https://g6.antv.vision/zh/examples/interaction/combo/#rect

Steps to Reproduce the Bug or Issue

  1. 官网demo可复现,测试代码如下:
{
  type: 'drag-combo',
  enableDelegate: false,
  shouldEnd(e) {
    console.log('end', e);
    return false;
  },
},
  1. 通过拖动combo内的空白区域调整combo位置,鼠标松开后没有触发shouldEnd

Expected behavior

combo拖动到画布上时也能正常触发shouldEnd

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 124.0.6367.92

Additional context

No response

ZTao-z avatar May 08 '24 03:05 ZTao-z