G2
G2 copied to clipboard
当鼠标从 tooltip中移出图表范围,tooltip 不会消失
- [ ] 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 | - |
https://github.com/antvis/G2/pull/2184 之前应该修复过,但是没修好
可以手动加个监听,更方便
可以手动加个监听,更方便
第二个g2-tooltip好像会有延迟,会出现已经监听到tooltip出现,但元素只有canvas,而没有g2-tooltip这个div
ref: https://github.com/antvis/G2/issues/3741