File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ cdk-virtual-scroll-viewport {
4747 overflow : auto ;
4848 will-change : scroll-position ;
4949 contain : strict ;
50+
51+ // Prevent browser behaviors from interfering with virtual scrolling.
52+ overflow-anchor : none ;
53+ scroll-behavior : auto ;
5054}
5155
5256// Wrapper element for the rendered content. This element will be transformed to push the rendered
@@ -59,7 +63,6 @@ cdk-virtual-scroll-viewport {
5963
6064 // Note: We can't put `will-change: transform;` here because it causes Safari to not update the
6165 // viewport's `scrollHeight` when the spacer's transform changes.
62-
6366 [dir = ' rtl' ] & {
6467 right : 0 ;
6568 left : auto ;
@@ -86,7 +89,6 @@ cdk-virtual-scroll-viewport {
8689
8790 // Note: We can't put `will-change: transform;` here because it causes Safari to not update the
8891 // viewport's `scrollHeight` when the spacer's transform changes.
89-
9092 [dir = ' rtl' ] & {
9193 transform-origin : 100% 0 ;
9294 }
You can’t perform that action at this time.
0 commit comments