Center scrolled view

This commit is contained in:
Kenox 2022-11-03 18:47:10 +01:00
commit 17fa8d400e
2 changed files with 2 additions and 2 deletions

View file

@ -234,7 +234,7 @@ haste.prototype.loadDocument = function(key) {
const hash = window.location.hash.substring(1);
highlightLine(hash)
document.getElementsByClassName("highlight")[0].scrollIntoView({
behavior: 'auto',
behavior: 'smooth',
block: 'center'
});
}

File diff suppressed because one or more lines are too long