mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 20:42:07 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user