feat: enable mouse wheel horizontal scrolling on tab bar

This commit is contained in:
2026-02-28 23:09:09 +02:00
parent e2077705de
commit 6a35718a7c

View File

@@ -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);