mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: avoid initial scrolling in print #268
This commit is contained in:
parent
b0812bb28e
commit
cc08c9f3df
1 changed files with 4 additions and 4 deletions
|
@ -552,6 +552,10 @@ function initToc(){
|
||||||
t.addEventListener( 'click', showToc );
|
t.addEventListener( 'click', showToc );
|
||||||
p.addEventListener( 'click', showToc );
|
p.addEventListener( 'click', showToc );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// finally give initial focus to allow keyboard scrolling in FF
|
||||||
|
document.querySelector( '#body-inner' ).focus();
|
||||||
|
psc && psc.scrollbarY.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSwipeHandler(){
|
function initSwipeHandler(){
|
||||||
|
@ -768,10 +772,6 @@ jQuery(function() {
|
||||||
jQuery('[data-nav-id="' + url + '"]').addClass('visited');
|
jQuery('[data-nav-id="' + url + '"]').addClass('visited');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// finally give initial focus to allow keyboard scrolling in FF
|
|
||||||
document.querySelector( '#body-inner' ).focus();
|
|
||||||
psc && psc.scrollbarY.focus();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery.extend({
|
jQuery.extend({
|
||||||
|
|
Loading…
Reference in a new issue