5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:50:36 +08:00

[v2] add overscroll-behavior

This commit is contained in:
Lea Anthony 2021-10-24 09:03:05 +11:00
parent 5703d465fc
commit 126cc78d1a
3 changed files with 15 additions and 2 deletions

View File

@ -13,6 +13,7 @@ body {
margin: 0;
width: 100%;
height: 100%;
overscroll-behavior: none;
}
@font-face {

View File

@ -8,8 +8,9 @@ body {
margin: 0;
color: white;
font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
overscroll-behavior: none;
}
@font-face {

View File

@ -0,0 +1,11 @@
# Overscroll
[Overscroll](https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior) is the "bounce effect" you sometimes
get when you scroll beyond a page's content boundaries. This is common in mobile apps. This can be disabled using CSS:
```css
body {
overscroll-behavior: none;
}
```