ソースを参照

Fix IntersectionObserverArticle not hiding some out-of-view items (#9982)

IntersectionObserverArticle is made to save on RAM by avoiding fully rendering
items that are far out of view. However, it did not work for items spawned
outside the intersection observer.
master
ThibG 5年前
committed by Eugen Rochko
コミット
d09ce6d81b
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      app/javascript/mastodon/components/intersection_observer_article.js

+ 1
- 1
app/javascript/mastodon/components/intersection_observer_article.js ファイルの表示

@@ -65,7 +65,7 @@ export default class IntersectionObserverArticle extends React.Component {
}

updateStateAfterIntersection = (prevState) => {
if (prevState.isIntersecting && !this.entry.isIntersecting) {
if (prevState.isIntersecting !== false && !this.entry.isIntersecting) {
scheduleIdleTask(this.hideIfNotIntersecting);
}
return {


読み込み中…
キャンセル
保存