From 1ef50279fb7b919cfe3be45b02715698af74fb74 Mon Sep 17 00:00:00 2001 From: shdrs Date: Tue, 9 Jun 2026 09:02:41 +0800 Subject: [PATCH] Disable scroll-snap on landing page --- static/landing.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/landing.html b/static/landing.html index e1f12f7ef..05943284c 100644 --- a/static/landing.html +++ b/static/landing.html @@ -26,16 +26,15 @@ } * { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 60px; } - /* REMOVED: "scroll-snap-type: y mandatory" + /* REMOVED: "scroll-snap-type: y proximity" The idea was: >>Each section is a full-viewport "page" with its content centered, so only one shows at a time and the snap is obvious.<< PROBLEM: sections easily grow taller than 100vh IRL This cause forced jumps mid-read. It's intrusive UX. + The landing-page is not a PowerPoint presentation! - Preserved: CSS snap-points to avoid destroying code meta-data - Less intrusive version: "scroll-snap-type: y proximity" - For now: fully removed (bad UX)*/ + Preserved: CSS snap-points to avoid destroying code meta-data*/ .hero, section { scroll-snap-align: start; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;