feat: enable mouse wheel horizontal scrolling on tab bar
This commit is contained in:
@@ -1895,6 +1895,17 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
loadProfilePictureMetadata();
|
||||
initLogsScrollDetection(); // Set up log auto-scroll tracking
|
||||
|
||||
// Enable mouse wheel horizontal scrolling on tab bar
|
||||
const tabButtonsEl = document.querySelector('.tab-buttons');
|
||||
if (tabButtonsEl) {
|
||||
tabButtonsEl.addEventListener('wheel', function(e) {
|
||||
if (e.deltaY !== 0) {
|
||||
e.preventDefault();
|
||||
tabButtonsEl.scrollLeft += e.deltaY;
|
||||
}
|
||||
}, { passive: false });
|
||||
}
|
||||
|
||||
// Set up periodic updates
|
||||
setInterval(loadStatus, 10000);
|
||||
setInterval(loadLogs, 5000);
|
||||
|
||||
Reference in New Issue
Block a user