File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -1948,20 +1948,28 @@ if (!isMobile) {
19481948
19491949} else {
19501950
1951- sidebarLogo . addEventListener ( 'touchmove' , ( ) => {
1951+ sidebarLogo . touchDown = false ;
19521952
1953- sidebarTitle . classList . add ( 'scrolling' ) ;
1953+ sidebarLogo . addEventListener ( 'scroll' , ( ) => {
1954+
1955+ if ( sidebarLogo . touchDown ) {
1956+
1957+ sidebarTitle . classList . add ( 'scrolling' ) ;
1958+
1959+ }
19541960
19551961 } ) ;
19561962
1957- sidebarLogo . addEventListener ( 'touchend' , ( ) => {
1958-
1959- sidebarTitle . classList . remove ( 'scrolling' ) ;
1963+ sidebarLogo . addEventListener ( 'touchstart' , ( ) => {
19601964
1961- } ) ;
1965+ sidebarLogo . touchDown = true ;
19621966
1963- sidebarLogo . addEventListener ( 'touchcancel' , ( ) => {
1967+ } ) ;
19641968
1969+ sidebarLogo . addEventListener ( 'touchend' , ( ) => {
1970+
1971+ sidebarLogo . touchDown = false ;
1972+
19651973 sidebarTitle . classList . remove ( 'scrolling' ) ;
19661974
19671975 } ) ;
You can’t perform that action at this time.
0 commit comments