Skip to content

Commit

Permalink
perf(dialog): avoid repaintin dialog content element on scroll
Browse files Browse the repository at this point in the history
Fixes the `<md-dialog-content>` element being repainted on scroll.

Fixes angular#6878.
  • Loading branch information
crisbeto committed Sep 6, 2017
1 parent bef6271 commit 70992d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/dialog/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ $mat-dialog-button-margin: 8px !default;
max-height: $mat-dialog-max-height;
overflow: auto;
-webkit-overflow-scrolling: touch;

// Promote the content to a new GPU layer to avoid repaints on scroll.
backface-visibility: hidden;
}

.mat-dialog-title {
Expand Down

0 comments on commit 70992d5

Please sign in to comment.