mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 01:46:14 -04:00
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:
parent
996a2d86dd
commit
790ba72a9e
2 changed files with 16 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue