From 8858ce3e898f8eba5c69e066cb49bd7287b7ba60 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 26 Oct 2023 17:05:37 +0800 Subject: [PATCH] Prevent accidental browser history nav When scrolling inside deeply nested comments --- src/app.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.css b/src/app.css index 18e85ad7..ccfb1624 100644 --- a/src/app.css +++ b/src/app.css @@ -274,6 +274,7 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) { background-color: var(--bg-color); box-shadow: inset 0 -3px var(--comment-line-color), inset 0 3px var(--comment-line-color); + overscroll-behavior-x: contain; } .timeline.contextual .replies[data-comments-level='4'] { overflow-x: auto;