From 8fab832af89cb344048a9bb52740044211a5372b Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Sun, 25 Jan 2026 04:55:19 +0000 Subject: [PATCH] appview/pages/pulls: prevent overscrolling when bottom sheet is open in mobile view, when the bottom sheet is open, overscrolling the sheet would cause the underlying page to start scrolling. this adds a bit of js to the page to avoid this behavior. Signed-off-by: oppiliappan --- appview/pages/templates/repo/pulls/pull.html | 2 ++ 1 file(s) changed, 2 insertion(s)(+), 0 deletion(s)(-) diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -31,9 +31,11 @@ if (backdrop) { if (details.open && !isDesktop()) { backdrop.classList.remove('opacity-0', 'pointer-events-none'); backdrop.classList.add('opacity-100', 'pointer-events-auto'); + document.body.style.overflow = 'hidden'; } else { backdrop.classList.remove('opacity-100', 'pointer-events-auto'); backdrop.classList.add('opacity-0', 'pointer-events-none'); + document.body.style.overflow = ''; } } }; -- tangled.sh