From e873aab28472071d0202288a15151a3797f3a054 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 14 Nov 2026 21:52:45 -0700 Subject: [PATCH] Let the mouse wheel scroll the page when it is over the filters The last change gave the filter panel overscroll-behavior: contain, to stop a scroll inside the panel carrying on into the page. In Chromium that rule also applies when the panel has nothing to scroll, so with the mouse over the filters the wheel moved nothing at all and the trail list could not be scrolled from there. Firefox, where the change was tested, does not behave that way. The rule is removed. Over the panel the wheel now scrolls the panel while it has further to go, and the page otherwise. Checked in a Chromium browser by turning the wheel over the panel at two window heights, with "More filters" open and closed. Co-Authored-By: Claude Fable 5.2 --- web/assets/style.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/assets/style.css b/web/assets/style.css index 651e6d1..f94a299 100644 --- a/web/assets/style.css +++ b/web/assets/style.css @@ -813,13 +813,17 @@ body:has(.hero--home) .site-header .wordmark { visibility: hidden; } /* Beside the list, the filters stay on screen while the list scrolls. The panel is never taller than the window: when its fields do not fit (a short window, or "More filters" opened) it scrolls on its own, so every filter can be - reached from anywhere in the list. Its reset button stays at its foot. */ + reached from anywhere in the list. Its reset button stays at its foot. + The wheel must always move something: over the panel it scrolls the panel + while the panel has further to go, and the page otherwise. So no + overscroll-behavior here: in Chromium it stops the wheel reaching the page + even when the panel has nothing to scroll. */ @media (min-width: 64rem) { .filters { position: sticky; inset-block-start: var(--space-4); align-self: start; max-block-size: calc(100vh - 2 * var(--space-4)); max-block-size: calc(100dvh - 2 * var(--space-4)); - overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; + overflow-y: auto; scrollbar-width: thin; } .filters .filters__reset { position: sticky; inset-block-end: 0; z-index: 1;