Skip to content

Commit

Permalink
perf(tabs): avoid repainting while scrolling (#7889)
Browse files Browse the repository at this point in the history
Along the same lines as #7721, #7719 and #6890 the tab body currently repaints on scroll.
  • Loading branch information
crisbeto authored and andrewseguin committed Nov 2, 2017
1 parent 9a05ecd commit 943395e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/tabs/tab-body.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@import '../core/style/vendor-prefixes';

.mat-tab-body-content {
// Avoids repainting while scrolling.
@include backface-visibility(hidden);
height: 100%;
overflow: auto;

Expand Down

0 comments on commit 943395e

Please sign in to comment.