mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-20 21:34:20 -07:00
Update scrolling
This commit is contained in:
parent
526fedb6cd
commit
75bf4124e5
2 changed files with 4 additions and 3 deletions
|
@ -189,10 +189,11 @@ haste.prototype.addLineNumbers = function(lineCount) {
|
|||
if(window.location.hash) {
|
||||
const hash = window.location.hash.substring(1);
|
||||
highlightLine(hash)
|
||||
document.getElementById('line' + hash).scrollIntoView({
|
||||
|
||||
/*document.getElementById('line' + hash).scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'center'
|
||||
});
|
||||
});*/
|
||||
}
|
||||
};
|
||||
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue