Skip to content

Commit

Permalink
Added scroll wheel event to tab pane to side scroll tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jschick04 authored and bill-long committed Feb 22, 2024
1 parent 75c3961 commit c85c4da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/EventLogExpert/wwwroot/js/tab_pane.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,11 @@ window.registerTabPaneScroller = (tabPane) => {
tabPane.scrollLeft = currentPos - pos;
});

tabPane.addEventListener("wheel", (e) => {
e.preventDefault();

tabPane.scrollLeft += e.deltaY;
});

tabPane.addEventListener("mouseleave", () => { canDrag = false; });
}

0 comments on commit c85c4da

Please sign in to comment.