Minor fix to timeline jump avoiding behavior

master
Thibaut Girka 5 years ago committed by ThibG
parent dfe1d548a5
commit 7c0728c776
  1. 2
      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;

Loading…
Cancel
Save