Skip to content

Commit

Permalink
fix: prevent touch scolling on non-modal content
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Nov 4, 2021
1 parent 5effeb0 commit e471feb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/overlay/src/overlay-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export class OverlayStack {
#holder[hidden] {
display: none !important;
}
#actual[aria-hidden] {
touch-action: none;
}
#actual[tabindex="-1"] ::slotted(*) {
pointer-events: none; /* just in case? */
}
Expand Down
1 change: 1 addition & 0 deletions projects/documentation/src/components/side-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ aside {

.scrim {
z-index: 10;
touch-action: none;
}
}

Expand Down

0 comments on commit e471feb

Please sign in to comment.