Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/cdk/scrolling/virtual-scroll-viewport.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ cdk-virtual-scroll-viewport {
overflow: auto;
will-change: scroll-position;
contain: strict;

// Prevent browser behaviors from interfering with virtual scrolling.
overflow-anchor: none;
scroll-behavior: auto;
}

// Wrapper element for the rendered content. This element will be transformed to push the rendered
Expand All @@ -59,7 +63,6 @@ cdk-virtual-scroll-viewport {

// Note: We can't put `will-change: transform;` here because it causes Safari to not update the
// viewport's `scrollHeight` when the spacer's transform changes.

[dir='rtl'] & {
right: 0;
left: auto;
Expand All @@ -86,7 +89,6 @@ cdk-virtual-scroll-viewport {

// Note: We can't put `will-change: transform;` here because it causes Safari to not update the
// viewport's `scrollHeight` when the spacer's transform changes.

[dir='rtl'] & {
transform-origin: 100% 0;
}
Expand Down
Loading