fix(图表): 修复向下滚动至图表全部可见后,提示轮播未重启的问题

This commit is contained in:
jianneng-fit2cloud
2025-10-31 19:02:28 +08:00
parent 7ed1f75d34
commit fbc877cb71

View File

@@ -193,7 +193,7 @@ class G2TooltipCarousel {
if (!this.intersectionObserver) {
this.intersectionObserver = new IntersectionObserver(this.handleIntersection.bind(this), {
root: null,
threshold: [0, 0.3, 0.5, 0.7]
threshold: [0, 0.3, 0.5, 0.7, 1]
})
}
this.intersectionObserver?.observe(this.newChart.getContainer())