From 5a1614ce9bc7724e36063f8693e2c0fd94f23851 Mon Sep 17 00:00:00 2001 From: MitarashiDango Date: Tue, 29 Aug 2017 23:11:28 +0900 Subject: [PATCH] fix error when single columns mode. (#4734) --- .../mastodon/features/ui/components/columns_area.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/components/columns_area.js b/app/javascript/mastodon/features/ui/components/columns_area.js index de3a199c70..b8f3a5ccb2 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) => {