Scroll into line element

This commit is contained in:
Kenox 2022-11-04 09:32:06 +01:00
commit f5211d6ffe
2 changed files with 3 additions and 3 deletions

View file

@ -180,10 +180,10 @@ haste.prototype.addLineNumbers = function(lineCount) {
const hash = window.location.hash.substring(1);
highlightNew(getLineElement(hash));
/*document.getElementById('line' + hash).scrollIntoView({
getLineElement(hash).scrollIntoView({
behavior: 'smooth',
block: 'center'
});*/
});
}
/*for (var i = 0; i < lineCount; i++) {
let div = document.createElement('a');

File diff suppressed because one or more lines are too long