From 7be620775eef7fe73a32c5507b59ae7c8f560517 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 de3a199c703..b8f3a5ccb29 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) => {