fix(图表): 优化操作图表中的缩略轴时,图表被拖动的问题

This commit is contained in:
jianneng-fit2cloud
2025-09-18 10:41:17 +08:00
parent c74f558b6c
commit f88df9a13d

View File

@@ -513,8 +513,13 @@ const handleDbClick = () => {
}
}
const hasChartMouseEvent = () => {
const chartContainer = document.getElementById(`container-canvas-${element.value.id}-common`)
return chartContainer && window.getComputedStyle(chartContainer).cursor !== 'default'
}
const handleInnerMouseDownOnShape = e => {
if (!canvasActive.value) {
if (!canvasActive.value || hasChartMouseEvent()) {
return
}
batchSelected(e)