FIX: Buggy topic scrolling on iOS 12 (#16422)

This commit is contained in:
Penar Musaraj 2022-04-09 09:44:36 -04:00 committed by GitHub
parent be519d2aec
commit cd02ea07fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ export default MountWidget.extend({
const slack = Math.round(windowHeight * 5);
const onscreen = [];
const nearby = [];
const windowTop = document.documentElement.scrollTop;
const windowTop =
document.documentElement.scrollTop || document.body.scrollTop;
const postsWrapperTop = domUtils.offset(
document.querySelector(".posts-wrapper")
).top;