Skip to content

Commit

Permalink
don't lock scrolling after resizing when the mobile menu remains open
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 14, 2023
1 parent 60b946e commit 0ec0b38
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/css/header.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
html.is-clipped--navbar {
overflow-y: hidden;
}

/* NOTE workaround bug in Firefox mobile, which clips the html element to the original viewport height */
@supports (scrollbar-width: none) {
@media screen and (max-width: 1023.5px) {
html.is-clipped--navbar {
overflow-y: initial;
scrollbar-width: none;
overflow-y: hidden;
}

/* NOTE workaround bug in Firefox mobile, which clips the html element to the original viewport height */
@supports (scrollbar-width: none) {
html.is-clipped--navbar {
overflow-y: initial;
scrollbar-width: none;
}
}
}

Expand Down

0 comments on commit 0ec0b38

Please sign in to comment.