aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.ts
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-02-16 19:13:22 +0000
committerClaude <noreply@anthropic.com>2026-02-16 19:13:22 +0000
commit0b08b2fb49827399ff0652bc20d5f71e2066025c (patch)
treec705d35f4f38366efa3e430a1f956677a85f385d /frontend-vanilla/src/main.ts
parent6e84019f6cf887f777c2c8f9601455e031dad3a5 (diff)
downloadneko-0b08b2fb49827399ff0652bc20d5f71e2066025c.tar.gz
neko-0b08b2fb49827399ff0652bc20d5f71e2066025c.tar.bz2
neko-0b08b2fb49827399ff0652bc20d5f71e2066025c.zip
v3 ui: require 100% visibility before marking items as read
Change IntersectionObserver threshold from 0.5 to 1.0 so items are only marked as read when fully scrolled into view, reducing accidental mark-as-read during fast scrolling. Also fix unused Category import in perf test and add thicket config.json to repository so future agents can use thicket CLI commands. Closes NK-s2g59a https://claude.ai/code/session_019Z4VJxzY7tcAuNkPAkvry9
Diffstat (limited to 'frontend-vanilla/src/main.ts')
-rw-r--r--frontend-vanilla/src/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend-vanilla/src/main.ts b/frontend-vanilla/src/main.ts
index 7b55c48..7d75e14 100644
--- a/frontend-vanilla/src/main.ts
+++ b/frontend-vanilla/src/main.ts
@@ -291,7 +291,7 @@ export function renderItems() {
}
}
});
- }, { threshold: 0.5 });
+ }, { threshold: 1.0 });
contentArea.querySelectorAll('.feed-item').forEach(el => itemObserver!.observe(el));
}