Skip to content

fix: stabilize annotated submit and scroll; compact queued/steered annotations - #85

Open
Miles-Xu wants to merge 1 commit into
omdsh-dev:mainfrom
Miles-Xu:fix/annotation-stability
Open

Miles-Xu wants to merge 1 commit into
omdsh-dev:mainfrom
Miles-Xu:fix/annotation-stability

Conversation

@Miles-Xu

@Miles-Xu Miles-Xu commented Oct 18, 2026 •

Copy link
Copy Markdown

这个 PR 处理三个批注交互稳定性问题:带批注回车、滚动高亮、排队/插队预览。

#61:带批注回车只提交一次
插件在 capture 阶段拼好草稿后自己 submit('queue'),不再把同一次 Enter 交给宿主 keymap;400ms 去重锁覆盖 keydown / pointerdown / click。修复「卡回车」和「重复发送 / 打断运行中回合」。运行中带批注发送一律排队。

#82:滚动高亮滞后与抖动
高亮去掉入场动画;高亮/编号节点池复用;onLayoutChange 在 rAF 之前同步刷新标记。真实滚轮探针从 90px 偏差 / 0.00008 透明度 / 每帧重建降到 0px / 1 / 0 次替换。

排队 / 插队预览
排队 dock 预览收成「批注 ×N」标签;插队 pending echo 在绘制前装饰;预览换行折叠时也能正确数出批注条数。

协议文案
批注块里的回复格式收紧为逐条回应,不合并、不跳过;没有加漏答检查。

测试

  • node --test test/*.test.mjs:111 项通过。
  • 真实滚轮探针(Chromium):最大偏差 0px、透明度 1、DOM 替换 0。
  • 在 DSH NEXT 2.0.18 / DSH 0.2.x 上手动验证空闲发送、运行中排队和插队。

@Miles-Xu
Miles-Xu force-pushed the fix/annotation-stability branch from 10eb872 to 017638a Compare November 7, 2026 09:45
@Miles-Xu Miles-Xu changed the title fix: stabilize annotation submit, drag and scroll; compact queued/steered UI fix: stabilize annotated submit and scroll; compact queued/steered annotations Nov 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant