Skip to content

Commit 8bce22e

Browse files
committed
Update filebrowser.js
1 parent c8dd009 commit 8bce22e

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

filebrowser.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)