From 6a35718a7c3d6201c754b47a6479ae84ff1834b0 Mon Sep 17 00:00:00 2001 From: koko210Serve Date: Sat, 28 Feb 2026 23:09:09 +0200 Subject: [PATCH] feat: enable mouse wheel horizontal scrolling on tab bar --- bot/static/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bot/static/index.html b/bot/static/index.html index 1443b59..01be1e6 100644 --- a/bot/static/index.html +++ b/bot/static/index.html @@ -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);