Skip to content

Commit

Permalink
Prevent rubber-band effect on macOS when overscrolling
Browse files Browse the repository at this point in the history
This yields a more native-app-like feel.
  • Loading branch information
rudolfs committed Sep 9, 2024
1 parent 918cc21 commit 6cfd87f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand All @@ -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);
Expand Down

0 comments on commit 6cfd87f

Please sign in to comment.