]> cat aescling's git repositories - mastodon.git/commitdiff
fix error when single columns mode. (#4734)
authorMitarashiDango <MitarashiDango@users.noreply.github.com>
Tue, 29 Aug 2017 14:11:28 +0000 (23:11 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 29 Aug 2017 14:11:28 +0000 (16:11 +0200)
app/javascript/mastodon/features/ui/components/columns_area.js

index de3a199c7033285bf22b0a832e88b17ee61f800d..b8f3a5ccb291a351c4509c5623e387c03db36c32 100644 (file)
@@ -57,7 +57,9 @@ export default class ColumnsArea extends ImmutablePureComponent {
   }
 
   handleChildrenContentChange() {
-    scrollRight(this.node);
+    if (!this.props.singleColumn) {
+      scrollRight(this.node);
+    }
   }
 
   handleSwipe = (index) => {