]> cat aescling's git repositories - mastodon.git/commitdiff
Add will-change to improve scrolling perf (#5001)
authorNolan Lawson <nolan@nolanlawson.com>
Mon, 18 Sep 2017 21:29:15 +0000 (14:29 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 18 Sep 2017 21:29:15 +0000 (23:29 +0200)
app/javascript/styles/components.scss

index d323c2ff04186cf3e78ed2c51b710290da1a82c8..31341fd0ab7754aca921c2b58b22ffa767fcae5d 100644 (file)
   overflow-x: hidden;
   flex: 1 1 auto;
   -webkit-overflow-scrolling: touch;
+  will-change: transform; // improves perf in mobile Chrome
 
   &.optionally-scrollable {
     overflow-y: auto;