Skip to content

Commit 07eb3d7

Browse files
committed
only apply overscroll-behavior to scrolling elements
1 parent ab2fb19 commit 07eb3d7

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/css/base.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ table {
8686
opacity: 0.5;
8787
}
8888

89-
body * {
90-
overscroll-behavior: none;
91-
}
92-
9389
@supports (scrollbar-width: thin) {
9490
body * {
9591
scrollbar-width: thin;

src/css/header.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ body {
235235
box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
236236
max-height: var(--body-min-height);
237237
overflow-y: auto;
238+
overscroll-behavior: none;
238239
padding: 0.5rem 0;
239240
}
240241

src/css/nav.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
.nav-panel-menu {
7575
overflow-y: scroll;
76+
overscroll-behavior: none;
7677
height: var(--nav-panel-menu-height);
7778
}
7879

src/css/toc.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
.toc.sidebar .toc-menu ul {
3636
max-height: var(--toc-height);
3737
overflow-y: auto;
38+
overscroll-behavior: none;
3839
scrollbar-width: none;
3940
}
4041

0 commit comments

Comments
 (0)