fix(图表): 修复选择拖动图表缩略轴时,图表选中状态被取消的问题

This commit is contained in:
jianneng-fit2cloud
2025-09-18 11:16:38 +08:00
parent fdd0cdfc85
commit 29c2a7b854

View File

@@ -519,7 +519,7 @@ const hasChartMouseEvent = () => {
}
const handleInnerMouseDownOnShape = e => {
if (!canvasActive.value || hasChartMouseEvent()) {
if (!canvasActive.value) {
return
}
batchSelected(e)
@@ -694,9 +694,10 @@ const handleMouseDownOnShape = e => {
}
handleGroupComponent()
}
document.addEventListener('mousemove', move)
document.addEventListener('mouseup', up)
if (!hasChartMouseEvent()) {
document.addEventListener('mousemove', move)
document.addEventListener('mouseup', up)
}
}
const selectCurComponent = e => {