mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 04:00:48 +01:00
fix: trackpad horizontal scroll on tabs not working properly
This commit is contained in:
parent
dd9c089d27
commit
ba5a1b68ab
@ -638,6 +638,8 @@ const hideProcessesModal = () => {
|
||||
const addWheelEvent = () => {
|
||||
if (!hasWheelEvent.value) {
|
||||
tabWrap.value.$el.addEventListener('wheel', (e: WheelEvent) => {
|
||||
if (e.deltaX !== 0) return; // If trackpad horizontal scroll
|
||||
|
||||
if (e.deltaY > 0) tabWrap.value.$el.scrollLeft += 50;
|
||||
else tabWrap.value.$el.scrollLeft -= 50;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user