diff options
Diffstat (limited to 'includes/fragments/system.inc')
-rw-r--r-- | includes/fragments/system.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/fragments/system.inc b/includes/fragments/system.inc index ad7db76..8d31f4d 100644 --- a/includes/fragments/system.inc +++ b/includes/fragments/system.inc @@ -7,8 +7,8 @@ </div> <script> - window.onscroll = () => { - document.getElementById("system-banner-container").style.height = (65 - ((window.scrollY / window.screen.availHeight) * 100)) + "vh"; + document.getElementById("app").onscroll = () => { + document.getElementById("system-banner-container").style.height = (65 - ((document.getElementById("app").scrollTop / (window.screen.availHeight - 62)) * 100)) + "vh"; } </script> |