]> cat aescling's git repositories - mastodon.git/commitdiff
Fix cancellation of scroll to the right (#4978)
authorabcang <abcang1015@gmail.com>
Sun, 17 Sep 2017 09:59:23 +0000 (18:59 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 17 Sep 2017 09:59:23 +0000 (11:59 +0200)
app/javascript/mastodon/features/ui/components/columns_area.js

index 539af8ce33cf18e7d3c1384ac1a11346f7cf96d2..5610095b99987bf70a3404913534bfe246b9a7b1 100644 (file)
@@ -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);
     }
   }