mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 04:33:10 -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) {
|
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'
|
||||||
});
|
});*/
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
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