Skip to content

Commit

Permalink
fix(content): set overscroll-behavior based on the scroll direction (#…
Browse files Browse the repository at this point in the history
…20011)

resolves #20010
  • Loading branch information
haydenbr authored and liamdebeasi committed Mar 25, 2020
1 parent 14ac8ae commit a3fc77b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/components/content/content.scss
Expand Up @@ -84,17 +84,18 @@
.scroll-x {
-webkit-overflow-scrolling: touch;
will-change: scroll-position;
overscroll-behavior: contain;
}

.scroll-y {
touch-action: pan-y;
overflow-y: var(--overflow);
overscroll-behavior-y: contain;
}

.scroll-x {
touch-action: pan-x;
overflow-x: var(--overflow);
overscroll-behavior-x: contain;
}

.scroll-x.scroll-y {
Expand Down

0 comments on commit a3fc77b

Please sign in to comment.