From 46870a061eb3197ccbadedc4b98e17e722a86672 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Fri, 30 May 2025 11:11:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E4=B8=8E=E9=A1=B6=E9=83=A8=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/g2plot_tooltip_carousel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts b/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts index e95fee0072..75bcb42d06 100644 --- a/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts +++ b/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts @@ -460,9 +460,9 @@ class ChartCarouselTooltip { const rect = chartElement.getBoundingClientRect() // 判断鼠标位置是否在div内 const isInside = - mouseX >= rect.left - 10 && + mouseX >= rect.left + 10 && mouseX <= rect.right - 10 && - mouseY >= rect.top - 10 && + mouseY >= rect.top + 10 && mouseY <= rect.bottom - 10 console.log(isInside) if (!isInside) {