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) {
|
||||
|
||||
Reference in new issue
Block a user