docs: status after zoom persistence

This commit is contained in:
2026-10-21 16:41:09 +08:00
parent 5cfc6224d4
commit 99e1f0b6bf
2 changed files with 21 additions and 20 deletions

View File

@@ -65,6 +65,7 @@
- 不做鼠标位置锚点(与现有按钮缩放行为一致,滚动位置保持)。
- 触控板双指捏合在 Chromium 里也表现为 `ctrlKey + wheel`,顺带支持。
- 编辑模式下同样生效(`--content-scale` 已作用于 textarea)。
- 持久化:页面是 `with_html`(opaque origin),`localStorage` 不可用;改为 `zoom:<pct>` IPC + `config_dir()/zoom.txt`(400ms 防抖),启动 `Ready` 时恢复。
验收:预览/编辑都能缩放;范围 50%–300%;Ctrl+0 复位;不触发浏览器缩放;不按 Ctrl 时滚动不受影响。