Browse Source

Minor fix to timeline jump avoiding behavior

closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
7c0728c776
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/scrollable_list.js

+ 1
- 1
app/javascript/flavours/glitch/components/scrollable_list.js View File

@ -129,7 +129,7 @@ export default class ScrollableList extends PureComponent {
} }
getScrollPosition = () => { 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}; return {height: this.node.scrollHeight, top: this.node.scrollTop};
} else { } else {
return null; return null;

Loading…
Cancel
Save