mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
fix: do not skip LoadGap elements
This commit is contained in:
parent
3919319863
commit
60b19622c0
1 changed files with 8 additions and 0 deletions
|
@ -77,6 +77,14 @@ export default class StatusList extends ImmutablePureComponent {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
element = article.querySelector(".focusable");
|
element = article.querySelector(".focusable");
|
||||||
|
|
||||||
|
// This happens when the article contains a LoadGap element. We just want
|
||||||
|
// to stop the navigation there so that the user does not erroneously skip
|
||||||
|
// over it.
|
||||||
|
if (element === null &&
|
||||||
|
article.querySelector(".load-more.load-gap") !== null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (align_top && container.scrollTop > element.offsetTop) {
|
if (align_top && container.scrollTop > element.offsetTop) {
|
||||||
|
|
Loading…
Reference in a new issue