fix(content): set overscroll-behavior based on the scroll direction (#20011)

resolves #20010
This commit is contained in:
Hayden Braxton
2020-03-23 15:07:08 -04:00
committed by GitHub
parent 879b90c3c4
commit c68160ecd3

View File

@ -84,17 +84,18 @@
.scroll-x { .scroll-x {
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
will-change: scroll-position; will-change: scroll-position;
overscroll-behavior: contain;
} }
.scroll-y { .scroll-y {
touch-action: pan-y; touch-action: pan-y;
overflow-y: var(--overflow); overflow-y: var(--overflow);
overscroll-behavior-y: contain;
} }
.scroll-x { .scroll-x {
touch-action: pan-x; touch-action: pan-x;
overflow-x: var(--overflow); overflow-x: var(--overflow);
overscroll-behavior-x: contain;
} }
.scroll-x.scroll-y { .scroll-x.scroll-y {