fix(图表): 优化左侧与顶部位置

This commit is contained in:
jianneng-fit2cloud
2025-05-30 11:11:29 +08:00
committed by jianneng-fit2cloud
parent 211e5eff48
commit 46870a061e

View File

@@ -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) {