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

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

Open
ZTao-z opened this issue May 8, 2024 · 0 comments
Open

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

ZTao-z opened this issue May 8, 2024 · 0 comments

Comments

@ZTao-z
Copy link

ZTao-z commented May 8, 2024

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

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