]> cat aescling's git repositories - mastodon.git/commitdiff
Disable mouse-based pause from #4859 (#4865)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 9 Sep 2017 13:09:50 +0000 (15:09 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Sep 2017 13:09:50 +0000 (15:09 +0200)
It wasn't working ideally and introduced some annoying false positivies

app/javascript/mastodon/components/scrollable_list.js

index aeb0b0f4b5ce6be9a113f3f452613ac3b13a50b1..723dd322b06a32830c53f9ca736f385d38a19e86 100644 (file)
@@ -74,7 +74,7 @@ export default class ScrollableList extends PureComponent {
 
     // Reset the scroll position when a new child comes in in order not to
     // jerk the scrollbar around if you're already scrolled down the page.
-    if (someItemInserted && this._oldScrollPosition && (this.node.scrollTop > 0 || this._recentlyMoved())) {
+    if (someItemInserted && this._oldScrollPosition && this.node.scrollTop > 0) {
       const newScrollTop = this.node.scrollHeight - this._oldScrollPosition;
 
       if (this.node.scrollTop !== newScrollTop) {