scrollbar: another day, another try #808

This commit is contained in:
Sören Weber 2024-04-02 20:31:53 +02:00
parent 0b37d72780
commit bd49d54aa2
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -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 );
}); });