antvis/G6
Do you want to work on this issue?
You can request for a bounty in order to promote it!
默认行为drag-combo没有触发shouldEnd事件 #5708
ZTao-z posted onGitHub
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
- 官网demo可复现,测试代码如下:
{ type: 'drag-combo', enableDelegate: false, shouldEnd(e) { console.log('end', e); return false; }, },
- 通过拖动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