fix: Scroll-to-Top bei Lagewechsel verstaerkt (sofort + rAF + setTimeout)
Scroll-Reset erfolgt nun an 4 Zeitpunkten um sicherzustellen, dass der Hauptbereich nach oben scrollt, auch wenn GridStack oder andere asynchrone Rendering-Operationen den Scroll verschieben. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -654,7 +654,12 @@ const App = {
|
||||
|
||||
await this.loadIncidentDetail(id);
|
||||
// Nach dem Laden: Hauptbereich nach oben scrollen
|
||||
document.getElementById("main-content").scrollTop = 0;
|
||||
var mc = document.getElementById("main-content");
|
||||
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);
|
||||
},
|
||||
|
||||
async loadIncidentDetail(id) {
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren