Skip to content

Commit 7d8145b

Browse files
author
Pinky
committed
test(messages): pin the shift-correction boundary at the viewport end
Cover a visible row, which a shift still corrects, and a row starting exactly at the viewport end, which it does not. An above-only check or an inclusive end now fails the regression. Signed-off-by: Pinky <5f5ab050ec58ae208332edd544ebf705221e24c1b86d82a6ca07038a7a8f6ac9@buzz.block.builderlab.xyz>
1 parent 0c32c5b commit 7d8145b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/features/messages/virtua-compensation.test.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ it("buffers below a shift frozen upward without letting those rows move the read
147147
[32, 150, null], // wholly below the 2500–3000 viewport
148148
[32, 60, null],
149149
[23, 150, 50], // above it, as prepended rows are
150+
[29, 150, 50], // visible rows are still corrected
151+
[30, 150, null], // starts exactly at the viewport end
150152
]) {
151153
const c = setup({ offset: 500 });
152154
c.store.W(1, 400); // native upward scrolling

0 commit comments

Comments
 (0)