Skip to content

Commit

Permalink
Fix scroll chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedal987 committed Jun 10, 2024
1 parent 452422b commit f3cc4ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/www/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ body {
overscroll-behavior: contain;
}

html {
overscroll-behavior: contain;
}

main {
height: 100dvh;
/* Some older browsers don't support the
dvh property and we need a fallback value. */
height: 100vh;

overscroll-behavior: contain;
overflow-y: auto;
}

Expand Down
6 changes: 6 additions & 0 deletions frontend/www/css/modals.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

transition: all;
transition-duration: 0.25s;

overscroll-behavior: contain;
}

.modal {
Expand All @@ -36,6 +38,8 @@

-webkit-user-select: none;
user-select: none;

overscroll-behavior: contain;
}

.modal-inside-wrapper {
Expand All @@ -52,6 +56,8 @@
max-height: 80vh;

overflow-y: auto;

overscroll-behavior: contain;
}

.modal-image {
Expand Down

0 comments on commit f3cc4ef

Please sign in to comment.