diff --git a/src/static/js/app.js b/src/static/js/app.js index 0bd2439..e12cca2 100644 --- a/src/static/js/app.js +++ b/src/static/js/app.js @@ -652,14 +652,13 @@ const App = { UI.hideProgress(); } - await this.loadIncidentDetail(id); - // Nach dem Laden: Hauptbereich nach oben scrollen + // Scroll blockieren waehrend Rendering var mc = document.getElementById("main-content"); + mc.style.overflow = "hidden"; mc.scrollTop = 0; - window.scrollTo(0, 0); - requestAnimationFrame(() => { mc.scrollTop = 0; window.scrollTo(0, 0); }); - setTimeout(() => { mc.scrollTop = 0; window.scrollTo(0, 0); }, 50); - setTimeout(() => { mc.scrollTop = 0; window.scrollTo(0, 0); }, 150); + await this.loadIncidentDetail(id); + mc.scrollTop = 0; + requestAnimationFrame(() => { mc.scrollTop = 0; mc.style.overflow = ""; }); }, async loadIncidentDetail(id) {