fix(hub): stop scroll anchoring from moving the inbox on a tick
A tick redraws every inbox row; the browser's scroll anchoring then
moved the 258 px tall inbox at 390 by 9 px on the next frame, with no
script call (measured with wrapped focus, scroll calls and a scrollTop
trap). .inbox now sets overflow-anchor: none. The scrollTop restore of
d0f3393 changed nothing and goes. Proof: test_hub_inbox_e2e 6/6 green,
red twice without the line.
🎯 Fix: 95 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 92
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d0f3393654
commit
bf1e482f8b
2 files changed
+1
-2
No files matched your search
@@ -248,14 +248,12 @@
|
||||
const key = keyOf(item);
|
||||
flip(key);
|
||||
ui.cursor = Math.max(visibleInbox().findIndex((entry) => keyOf(entry) === key), 0);
|
||||
const top = inboxDom.scrollTop;
|
||||
drawInbox();
|
||||
drawGrant();
|
||||
const box = inboxDom.querySelector(`.item[data-index="${ui.cursor}"] > input[type="checkbox"]`);
|
||||
if (refocus && box) {
|
||||
box.focus({preventScroll: true});
|
||||
}
|
||||
inboxDom.scrollTop = top;
|
||||
}
|
||||
|
||||
function reviewsPill(item) {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
.task-toolbar > .choice-request { margin-left: auto; }
|
||||
.tasks > .chips { margin-bottom: 0; }
|
||||
body.fit .graph.tasks > .tasks-body, body.fit .graph.tasks > .inbox { flex: 1; min-height: 0; overflow: auto; }
|
||||
.inbox { overflow-anchor: none; }
|
||||
.choice-agents { display: grid; gap: 6px; max-height: 30vh; overflow: auto; }
|
||||
.choice-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.chip .count { margin-left: 2px; }
|
||||
|
||||
Reference in new issue
Block a user