mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
scrollbar: another day, another try #808
This commit is contained in:
parent
0b37d72780
commit
bd49d54aa2
2 changed files with 7 additions and 7 deletions
10
static/js/perfect-scrollbar.min.js
vendored
10
static/js/perfect-scrollbar.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -871,13 +871,13 @@ function initMenuScrollbar(){
|
||||||
// that need to be executed inbetween our own handlers
|
// that need to be executed inbetween our own handlers
|
||||||
// PSC removed for #242 #243 #244
|
// PSC removed for #242 #243 #244
|
||||||
// psc = elc && new PerfectScrollbar('#R-body-inner');
|
// psc = elc && new PerfectScrollbar('#R-body-inner');
|
||||||
psm = elm && new PerfectScrollbar('#R-content-wrapper');
|
psm = elm && new PerfectScrollbar('#R-content-wrapper', { scrollingThreshold: 2000, swipeEasing: false, wheelPropagation: false });
|
||||||
document.querySelectorAll('.topbar-button .topbar-content-wrapper').forEach( function( e ){
|
document.querySelectorAll('.topbar-button .topbar-content-wrapper').forEach( function( e ){
|
||||||
var button = getTopbarButtonParent( e );
|
var button = getTopbarButtonParent( e );
|
||||||
if( !button ){
|
if( !button ){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pst.set( button, new PerfectScrollbar( e ) );
|
pst.set( button, new PerfectScrollbar( e, { scrollingThreshold: 2000, swipeEasing: false, wheelPropagation: false }) );
|
||||||
e.addEventListener( 'click', toggleTopbarFlyoutEvent );
|
e.addEventListener( 'click', toggleTopbarFlyoutEvent );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue