mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 07:15:48 +08:00
FIX: Buggy topic scrolling on iOS 12 (#16422)
This commit is contained in:
parent
a9a643bcdc
commit
9a9a29b24b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user