change scroll-behavior to auto

timeslider follow test: ensure there are so much lines in the pad view
below the changed line, so that the changed line will be the first
visible line
This commit is contained in:
webzwo0i 2020-12-21 23:34:13 +01:00 committed by Richard Hansen
parent 996a2d86dd
commit 790ba72a9e
2 changed files with 16 additions and 11 deletions

View file

@ -177,7 +177,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
const ecb = document.getElementById('editorcontainerbox');
// Chrome 55 - 59 bugfix
if (ecb.scrollTo) {
ecb.scrollTo({top: newY, behavior: 'smooth'});
ecb.scrollTo({top: newY, behavior: 'auto'});
} else {
$('#editorcontainerbox').scrollTop(newY);
}