diff --git a/web/src/app/js/app.js b/web/src/app/js/app.js index 38142ba..c3615ef 100644 --- a/web/src/app/js/app.js +++ b/web/src/app/js/app.js @@ -625,7 +625,8 @@ window.onscroll = function(e) { return; if (scroll() === 0) setTimeout(async function() { - if (scroll() === 0) { + if (scroll() === 0 && page() !== null && + page().onScroll !== undefined) { await page().onScroll(0, true); window.scrollTo(0,0); }