From b500776f035779f9b9ee23ab889afa93ca987212 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Mon, 16 Feb 2026 19:17:59 -0800 Subject: Update V2/V3 'mark as read' logic to require item bottom to be above viewport, while keeping V1 unchanged --- frontend-vanilla/src/main.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend-vanilla/src/main.test.ts') diff --git a/frontend-vanilla/src/main.test.ts b/frontend-vanilla/src/main.test.ts index da2c41c..eb9e615 100644 --- a/frontend-vanilla/src/main.test.ts +++ b/frontend-vanilla/src/main.test.ts @@ -287,7 +287,7 @@ describe('main application logic', () => { if (itemEl) { itemEl.getBoundingClientRect = vi.fn(() => ({ - top: -50, bottom: 50, height: 100, left: 0, right: 0, width: 0, x: 0, y: 0, toJSON: () => { } + top: -150, bottom: -50, height: 100, left: 0, right: 0, width: 0, x: 0, y: 0, toJSON: () => { } })); } -- cgit v1.2.3