2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-23 03:33:24 +00:00

Scroll I/O areas to the top when switching tabs

This commit is contained in:
j433866
2019-06-06 09:33:51 +01:00
parent b77239fc15
commit 39101610d5
2 changed files with 4 additions and 0 deletions

View File

@@ -348,6 +348,7 @@ class InputWaiter {
inputText.style.overflow = "auto";
inputText.classList.remove("blur");
inputText.scroll(0, 0);
const lines = inputData.input.length < (this.app.options.ioDisplayThreshold * 1024) ?
inputData.input.count("\n") + 1 : null;