diff --git a/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js b/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js index 261d01bc08d..a871521bcd0 100644 --- a/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js +++ b/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js @@ -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;