Skip to content

Commit

Permalink
perf(tabs): avoid repainting while scrolling
Browse files Browse the repository at this point in the history
Along the same lines as angular#7721, angular#7719 and angular#6890 the tab body currently repaints on scroll.
  • Loading branch information
crisbeto committed Oct 18, 2017
1 parent 4fc3a0b commit 808b1a1
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 808b1a1

Please sign in to comment.