fix(webview): 锚点消失时立即 park,消除切换面板后的画面滞留 v3.26.33

This commit is contained in:
qiqi committed 2026-11-22 09:04:00 +08:00
1 parent ef7cdf424f
commit 83d42969f0
11 files changed
+60 -19

No files matched your search

+8
View File
@@ -361,6 +361,14 @@
if (!st) return
anchors.delete(id)
if (!st.open) return
// v3.26.33:锚点从 DOM 消失(换停靠栏面板 / React 重建节点体)时**立刻 park**,
// 原生层永远在最上层,不先隐藏会盖住新面板约 900ms(宽限期才 close)——表现为"切换后面面滞留 1 秒"。
if (st.shown !== false) {
push(st,
isFinite(st.px) ? st.px : 0, isFinite(st.py) ? st.py : 0,
isFinite(st.pw) ? st.pw : MIN_EDGE, isFinite(st.ph) ? st.ph : MIN_EDGE,
false, null)
}
var prev = pendingClose.get(id)
if (prev) clearTimeout(prev)
// 宽限窗口:LOD 降级 / React 重建节点体会让锚点短暂消失,立刻 close 会导致