From: Thibaut Girka Date: Sat, 9 Feb 2019 21:32:09 +0000 (+0100) Subject: Minor fix to timeline jump avoiding behavior X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=7c0728c7764e1e851eb0174b37767029c1061f2d;p=mastodon.git Minor fix to timeline jump avoiding behavior --- diff --git a/app/javascript/flavours/glitch/components/scrollable_list.js b/app/javascript/flavours/glitch/components/scrollable_list.js index 2e7c9fd6e..462185bbc 100644 --- a/app/javascript/flavours/glitch/components/scrollable_list.js +++ b/app/javascript/flavours/glitch/components/scrollable_list.js @@ -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;