about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMitarashiDango <MitarashiDango@users.noreply.github.com>2017-08-29 23:11:28 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-29 16:11:28 +0200
commit7be620775eef7fe73a32c5507b59ae7c8f560517 (patch)
tree60033cc7c44d2edf3665c7cb5e3b8ff6f878a1b5
parent4c76402ba1d355061e7e208b7a2f8251388a38e1 (diff)
fix error when single columns mode. (#4734)
-rw-r--r--app/javascript/mastodon/features/ui/components/columns_area.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/ui/components/columns_area.js b/app/javascript/mastodon/features/ui/components/columns_area.js
index de3a199c7..b8f3a5ccb 100644
--- a/app/javascript/mastodon/features/ui/components/columns_area.js
+++ b/app/javascript/mastodon/features/ui/components/columns_area.js
@@ -57,7 +57,9 @@ export default class ColumnsArea extends ImmutablePureComponent {
   }
 
   handleChildrenContentChange() {
-    scrollRight(this.node);
+    if (!this.props.singleColumn) {
+      scrollRight(this.node);
+    }
   }
 
   handleSwipe = (index) => {