mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-21 12:47:58 +00:00
Minor fix to timeline jump avoiding behavior
This commit is contained in:
parent
dfe1d548a5
commit
7c0728c776
|
@ -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…
Reference in a new issue