Revert "fix: v3.26.168 空格平移收尾也走隐藏两帧重绘(进一步消掉残影)"

This reverts commit 82c93bddea.
This commit is contained in:
qiqi committed 2026-12-01 14:55:16 +08:00
1 parent 82c93bddea
commit 2e7f01838e
5 files changed
+5 -19

No files matched your search

+1 -15
View File
@@ -7463,22 +7463,8 @@ const tbCenterSeed = (type, refs) => {
if (!host) return
try { host.classList.add('iwb-edges-off') } catch (e0) { /* ignore */ }
refs.edgesHitOff = true
const cv = host.querySelector ? host.querySelector('.iwb-edge-canvas') : null
// v3.26.168:空格平移收尾同样走「隐藏两帧再显示」,否则旧合成位图会留一点残影
if (cv) cv.style.visibility = 'hidden'
setTimeout(() => { try { refs.edgesHitOff = false; host.classList.remove('iwb-edges-off') } catch (e1) { /* ignore */ } }, 1500)
flush()
requestAnimationFrame(() => {
flush()
requestAnimationFrame(() => {
flush()
if (cv) cv.style.visibility = ''
})
})
setTimeout(() => {
try { if (cv) cv.style.visibility = '' } catch (e1) { /* ignore */ }
refs.edgesHitOff = false
try { host.classList.remove('iwb-edges-off') } catch (e2) { /* ignore */ }
}, 400)
}
const onUp = () => {
// 只处理「结束平移」的那次 pointerup:refs.pan 在捕获阶段仍为真;