Skip to content

Commit 7772d09

Browse files
committed
Update filebrowser.js
1 parent ffdeeda commit 7772d09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

filebrowser.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,8 +3010,11 @@ function onEditorScroll() {
30103010

30113011
}
30123012

3013+
30133014
function updateScrollbarArrow() {
30143015

3016+
console.log('[Scrollbar arrows] Updated');
3017+
30153018
// if codeit is horizontally scrollable
30163019
if (cd.scrollWidth > cd.clientWidth) {
30173020

@@ -3027,6 +3030,10 @@ function updateScrollbarArrow() {
30273030

30283031
}
30293032

3033+
// when codeit resizes, update
3034+
new ResizeObserver(updateScrollbarArrow).observe(cd);
3035+
3036+
30303037
// check for meta key (Ctrl/Command)
30313038
function isKeyEventMeta(event) {
30323039
return event.metaKey || event.ctrlKey;

0 commit comments

Comments
 (0)