FIX: Buggy topic scrolling on iOS 12 (#16422)
This commit is contained in:
parent
be519d2aec
commit
cd02ea07fc
|
@ -103,7 +103,8 @@ export default MountWidget.extend({
|
||||||
const slack = Math.round(windowHeight * 5);
|
const slack = Math.round(windowHeight * 5);
|
||||||
const onscreen = [];
|
const onscreen = [];
|
||||||
const nearby = [];
|
const nearby = [];
|
||||||
const windowTop = document.documentElement.scrollTop;
|
const windowTop =
|
||||||
|
document.documentElement.scrollTop || document.body.scrollTop;
|
||||||
const postsWrapperTop = domUtils.offset(
|
const postsWrapperTop = domUtils.offset(
|
||||||
document.querySelector(".posts-wrapper")
|
document.querySelector(".posts-wrapper")
|
||||||
).top;
|
).top;
|
||||||
|
|
Loading…
Reference in New Issue