refactor: 优化数据大屏大量图片拖拽容易出现卡顿问题#17344 (#17911)

cherry-pick 039dcb23,添加拖拽节流和requestAnimationFrame优化,
保留当前分支的tOffset缩放偏移计算逻辑。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
wangjiahao
2026-05-20 10:01:57 +08:00
parent d16a39f98e
commit f97a0f71e6

View File

@@ -597,6 +597,7 @@ const handleMouseDownOnShape = e => {
? document.getElementById('shape-id-' + canvasId.value.split('--')[0])
: null
const curDom = document.getElementById(domId.value)
// 添加节流变量
let rafId = null
let lastTime = 0