From: abcang Date: Sun, 17 Sep 2017 09:59:23 +0000 (+0900) Subject: Fix cancellation of scroll to the right (#4978) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=44245926f105e653cfe4fd3397b796df345023b5;p=mastodon.git Fix cancellation of scroll to the right (#4978) --- diff --git a/app/javascript/mastodon/features/ui/components/columns_area.js b/app/javascript/mastodon/features/ui/components/columns_area.js index 539af8ce3..5610095b9 100644 --- a/app/javascript/mastodon/features/ui/components/columns_area.js +++ b/app/javascript/mastodon/features/ui/components/columns_area.js @@ -78,7 +78,7 @@ export default class ColumnsArea extends ImmutablePureComponent { handleChildrenContentChange() { if (!this.props.singleColumn) { - scrollRight(this.node, this.node.scrollWidth - window.innerWidth); + this._interruptScrollAnimation = scrollRight(this.node, this.node.scrollWidth - window.innerWidth); } }