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

带背景柱状图事件被多次触发 #3748

Closed
simaQ opened this issue Dec 16, 2021 · 1 comment · Fixed by #3999
Closed

带背景柱状图事件被多次触发 #3748

simaQ opened this issue Dec 16, 2021 · 1 comment · Fixed by #3999
Assignees

Comments

@simaQ
Copy link
Contributor

simaQ commented Dec 16, 2021

很赞的功能,但是导致了事件被多次触发,不确定返回 group 的意图,如果背景层只是用于视觉效果,那么可以直接返回 shape。

return backgroundCfg ? group : shape;

@hustcc
Copy link
Member

hustcc commented Jun 23, 2022

@ai-qing-hai 两种解法:

  • 只 return shape
  • 设置 background 的 capture = false,不触发事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants