mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 20:42:07 +08:00
fix(图表): 优化操作图表中的缩略轴时,图表被拖动的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user