Skip to content

Commit 3f096d1

Browse files
authored
Check list before onEnd
1 parent 8ee2ac1 commit 3f096d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,12 @@ export default class InfiniteScroll extends Component {
150150
}
151151

152152
requestAnimationFrame(() => {
153-
this._infScroll.style.overflow = "auto";
154-
this._infScroll.style.transform = "none";
155-
this._infScroll.style.willChange = "none";
153+
// this._infScroll
154+
if (this._infScroll) {
155+
this._infScroll.style.overflow = "auto";
156+
this._infScroll.style.transform = "none";
157+
this._infScroll.style.willChange = "none";
158+
}
156159
});
157160
}
158161

0 commit comments

Comments
 (0)