Use css instead of JS to detect offset on high viewports

This commit is contained in:
schlagmichdoch 2025-02-13 20:07:25 +01:00
parent 8826893a42
commit 629328c2f6
2 changed files with 1 additions and 2 deletions

View file

@ -357,7 +357,6 @@ class BackgroundCanvas {
this.w = document.documentElement.clientWidth;
this.h = document.documentElement.clientHeight;
this.offset = this.$footer.offsetHeight - 27;
if (this.h >= 800) this.offset += 10;
if (oldW === this.w && oldH === this.h && oldOffset === this.offset) return; // nothing has changed