chore(backlog): 记录 g106 完成

This commit is contained in:
HIsheR
2026-10-26 13:58:26 +08:00
parent c66bcf35da
commit 137bf87d83
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1211,7 +1211,7 @@
"motivation": "affix / backTop / anchor / tour 四个组件都是「挂 window 或容器的 scroll+resize 监听,从不摘」:单页应用里每次进页面重建组件就多一根监听,旧闭包连同旧 DOM 一起被 window 拽住,切十次页面就十份空转的 sync 在滚动时跑",
"acceptance": "新增 watch.ts 的 watchViewport(root, host, handler):滚动 / 缩放时若 root 已脱离文档就一次性摘掉两个监听并停止回调,否则转交 handler 并首帧同步一次;四个组件改用该助手,行为与原来一致(首帧同步保留);npm run check 全绿",
"notes": "自补:一致性与泄漏治理;一处实现四处复用,后续新增长期监听组件照抄",
"status": "open"
"status": "done"
}
]
}