Skip to content

Commit 6cfd87f

Browse files
committed
Prevent rubber-band effect on macOS when overscrolling
This yields a more native-app-like feel.
1 parent 918cc21 commit 6cfd87f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

public/index.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
box-sizing: border-box;
33
}
44

5+
html {
6+
height: 100%;
7+
width: 100%;
8+
/* Prevent rubber-band effect when scrolling via touchpad on macOS. */
9+
overscroll-behavior: none;
10+
}
11+
512
body {
613
height: 100%;
714
width: 100%;
@@ -11,11 +18,6 @@ body {
1118
background-color: var(--color-background-default);
1219
}
1320

14-
html {
15-
height: 100%;
16-
width: 100%;
17-
}
18-
1921
.global-oid {
2022
color: var(--color-foreground-emphasized);
2123
font-size: var(--font-size-small);

0 commit comments

Comments
 (0)