Skip to content

Commit 57f3819

Browse files
authored
Update filebrowser.js
1 parent e469b37 commit 57f3819

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

filebrowser.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,15 @@ async function renderSidebarHTML() {
148148

149149
// scroll to end of title
150150

151-
sidebarTitle.classList.add('notransition');
152-
window.setTimeout(() => {
153-
sidebarTitle.classList.remove('notransition');
154-
}, 180);
151+
if (titleAnimation == '') {
152+
153+
sidebarTitle.classList.add('notransition');
154+
155+
window.setTimeout(() => {
156+
sidebarTitle.classList.remove('notransition');
157+
}, 180);
158+
159+
}
155160

156161
sidebarTitle.children[0].scrollTo({
157162
left: sidebarTitle.children[0].scrollWidth - sidebarTitle.children[0].offsetLeft,

0 commit comments

Comments
 (0)