1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-02 08:48:39 +09:00

Minor fix to timeline jump avoiding behavior

This commit is contained in:
Thibaut Girka 2019-02-09 22:32:09 +01:00 committed by ThibG
parent dfe1d548a5
commit 7c0728c776

View 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;