G2 icon indicating copy to clipboard operation
G2 copied to clipboard

当鼠标从 tooltip中移出图表范围,tooltip 不会消失

Open slience-y opened this issue 3 years ago • 1 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

[https://g2.antv.vision/zh/examples/line/basic#base。 直接用 g2 官网上的示例,将tooltip的enterable属性设为true即可复现](https://g2.antv.vision/zh/examples/line/basic#base。 直接用 g2 官网上的示例,将tooltip的enterable属性设为true即可复现)

Steps to reproduce

tooltip的enterable属性设为true, 鼠标移到折线图上,显示 tooltip,然后鼠标移动到 tooltip 上,快速从 tooltip 上移出画布, tooltip 不消失

Environment Info
g2 4.2.4
System -
Browser -

slience-y avatar Jul 04 '22 08:07 slience-y

https://github.com/antvis/G2/pull/2184 之前应该修复过,但是没修好

slience-y avatar Jul 04 '22 08:07 slience-y

image 可以手动加个监听,更方便

lxliang912 avatar Oct 20 '22 08:10 lxliang912

image 可以手动加个监听,更方便

第二个g2-tooltip好像会有延迟,会出现已经监听到tooltip出现,但元素只有canvas,而没有g2-tooltip这个div

earthaYan avatar Jun 15 '23 05:06 earthaYan

ref: https://github.com/antvis/G2/issues/3741

hustcc avatar Aug 22 '23 13:08 hustcc