Update scrolling

This commit is contained in:
Kenox 2022-11-03 19:44:51 +01:00
commit 75bf4124e5
2 changed files with 4 additions and 3 deletions

View file

@ -189,10 +189,11 @@ haste.prototype.addLineNumbers = function(lineCount) {
if(window.location.hash) { if(window.location.hash) {
const hash = window.location.hash.substring(1); const hash = window.location.hash.substring(1);
highlightLine(hash) highlightLine(hash)
document.getElementById('line' + hash).scrollIntoView({
/*document.getElementById('line' + hash).scrollIntoView({
behavior: 'smooth', behavior: 'smooth',
block: 'center' block: 'center'
}); });*/
} }
}; };

File diff suppressed because one or more lines are too long