Skip to content

Commit

Permalink
BlueScreen: scroll to top when visible
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 18, 2022
1 parent f919ed6 commit 4365931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tracy/BlueScreen/assets/bluescreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class BlueScreen
}

(new ResizeObserver(stickyFooter)).observe(blueScreen);

if (document.documentElement.classList.contains('tracy-bs-visible')) {
window.scrollTo(0, 0);
}
}


Expand Down Expand Up @@ -60,7 +64,6 @@ class BlueScreen
ajaxBs = document.getElementById('tracy-bs');
Tracy.Dumper.init(ajaxBs);
BlueScreen.init(true);
window.scrollTo(0, 0);
}
}

Expand Down

0 comments on commit 4365931

Please sign in to comment.