From 36281376bc2be5592193d01c483916b6c8859912 Mon Sep 17 00:00:00 2001 From: enes Date: Wed, 4 Sep 2024 13:44:10 +0200 Subject: [PATCH] fix(mobile): use dynamic vh and one-by-one horizontal scroll --- src/layouts/StickySideColumns.module.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/StickySideColumns.module.scss b/src/layouts/StickySideColumns.module.scss index b591447..a116720 100644 --- a/src/layouts/StickySideColumns.module.scss +++ b/src/layouts/StickySideColumns.module.scss @@ -22,6 +22,7 @@ > * { scroll-margin-top: $header-height + $body-vertical-padding; scroll-snap-align: start; + scroll-snap-stop: always; // Touch devices will always stop on each element } } @@ -45,7 +46,7 @@ } > :first-child { max-height: calc( - 100svh - $header-height - $body-vertical-padding * 2 - $tabs-height + 100dvh - $header-height - $body-vertical-padding * 2 - $tabs-height ); } }