Skip to content

Commit c219d4b

Browse files
committed
Page scroll lock on graph pages
1 parent 07e3e9f commit c219d4b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/static/js/mainUI.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ tabs.forEach(tab => {
4646
showSidebarContent(window._lastSelectedNodeData || null);
4747
}
4848
}
49+
// Disable page scroll for graph tabs
50+
if (tab === 'branching' || tab === 'performance') {
51+
document.body.style.overflow = 'hidden';
52+
} else {
53+
document.body.style.overflow = '';
54+
}
4955
});
5056
});
5157

0 commit comments

Comments
 (0)