diff options
author | MitarashiDango <MitarashiDango@users.noreply.github.com> | 2017-08-29 23:11:28 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-29 16:11:28 +0200 |
commit | 7be620775eef7fe73a32c5507b59ae7c8f560517 (patch) | |
tree | 60033cc7c44d2edf3665c7cb5e3b8ff6f878a1b5 /app | |
parent | 4c76402ba1d355061e7e208b7a2f8251388a38e1 (diff) |
fix error when single columns mode. (#4734)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/ui/components/columns_area.js | 4 |
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) => { |