From 6cfd87fceb8f2859964cb824ef6e09452ccc9be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 9 Sep 2024 17:38:11 +0200 Subject: [PATCH] Prevent rubber-band effect on macOS when overscrolling This yields a more native-app-like feel. --- public/index.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/public/index.css b/public/index.css index da888352f..d85e93e1a 100644 --- a/public/index.css +++ b/public/index.css @@ -2,6 +2,13 @@ box-sizing: border-box; } +html { + height: 100%; + width: 100%; + /* Prevent rubber-band effect when scrolling via touchpad on macOS. */ + overscroll-behavior: none; +} + body { height: 100%; width: 100%; @@ -11,11 +18,6 @@ body { background-color: var(--color-background-default); } -html { - height: 100%; - width: 100%; -} - .global-oid { color: var(--color-foreground-emphasized); font-size: var(--font-size-small);