]> cat aescling's git repositories - mastodon.git/commitdiff
Minor fix to timeline jump avoiding behavior
authorThibaut Girka <thib@sitedethib.com>
Sat, 9 Feb 2019 21:32:09 +0000 (22:32 +0100)
committerThibG <thib@sitedethib.com>
Sun, 10 Feb 2019 21:54:25 +0000 (22:54 +0100)
app/javascript/flavours/glitch/components/scrollable_list.js

index 2e7c9fd6ebf777f86935b5b3dab12f660da8cc6e..462185bbcc8d59725f59566ad0472ab886c3cd3e 100644 (file)
@@ -129,7 +129,7 @@ export default class ScrollableList extends PureComponent {
   }
 
   getScrollPosition = () => {
-    if (this.node && this.node.scrollTop > 0) {
+    if (this.node && (this.node.scrollTop > 0 || this.mouseMovedRecently)) {
       return {height: this.node.scrollHeight, top: this.node.scrollTop};
     } else {
       return null;