Skip to content

Commit f63d517

Browse files
committed
Update filebrowser.js
1 parent 1938e72 commit f63d517

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

filebrowser.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -833,20 +833,11 @@ async function renderSidebarHTML(pageNum = 1) {
833833
}
834834

835835

836-
// remove scroll momentum
837-
sidebar.style.overflow = 'hidden';
838-
839-
onNextFrame(() => {
840-
841-
// don't override existing HTML items
842-
fileWrapper.innerHTML += out;
843-
844-
// scroll to end of additional page
845-
sidebar.scrollTo(0, (sidebar.scrollHeight - sidebar.clientHeight - 1));
846-
847-
sidebar.style.overflow = '';
848-
849-
});
836+
// don't override existing HTML items
837+
fileWrapper.innerHTML += out;
838+
839+
// scroll to start of new page
840+
sidebar.scrollTo(0, (sidebar.scrollTop + 54)); // more button height
850841

851842
}
852843

0 commit comments

Comments
 (0)