Skip to content

Commit caa3e78

Browse files
committed
feat(app): add overscroll-behavior: none; to html
fixes #4048
1 parent 490c23a commit caa3e78

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/core/components/app/app.less

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
font-weight: 400;
88
font-style: normal;
99
}
10-
10+
html {
11+
overscroll-behavior: none;
12+
}
1113
.rtl({
1214
html {
1315
direction: rtl;
@@ -27,12 +29,28 @@ body {
2729
width: 100%;
2830
background: #fff;
2931
overflow: hidden;
32+
overflow-y: scroll;
3033
-webkit-text-size-adjust: 100%;
3134
-webkit-font-smoothing: antialiased;
3235
font-family: var(--f7-font-family);
3336
font-size: var(--f7-font-size);
3437
line-height: var(--f7-line-height);
3538
color: var(--f7-text-color);
39+
&::-webkit-scrollbar {
40+
width: 0px;
41+
background: transparent;
42+
position: relative;
43+
}
44+
&::-webkit-scrollbar-track {
45+
box-shadow: none;
46+
background: transparent;
47+
}
48+
&::-webkit-scrollbar-thumb {
49+
background-color: transparent;
50+
outline: none;
51+
border-radius: 9999px;
52+
position: relative;
53+
}
3654
}
3755
.dark body,
3856
body.dark {

0 commit comments

Comments
 (0)