Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb15172

Browse files
committed
resolves #181 prevent overscroll event in scrollable region from bubbling
1 parent 495d0da commit fb15172

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/css/header.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ body {
188188
box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
189189
max-height: var(--body-min-height);
190190
overflow-y: auto;
191+
overscroll-behavior: none;
191192
padding: 0.5rem 0;
192193
}
193194

src/css/nav.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ html.is-clipped--nav {
6262

6363
.nav-panel-menu {
6464
overflow-y: scroll;
65+
overscroll-behavior: none;
6566
height: var(--nav-panel-menu-height);
6667
}
6768

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)