From 51ab72f71581b87f9b73906842c234df60c13d80 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Mon, 6 Feb 2023 15:44:19 -0400 Subject: [PATCH] Correct the inverted tabs scrolling --- data/core/rootview.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 7ff54a45..002029c4 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -326,15 +326,15 @@ end function RootView:on_mouse_wheel(dy, dx) local x, y = self.mouse.x, self.mouse.y local node = self.root_node:get_child_overlapping_point(x, y) - + local idx = node:get_tab_overlapping_point(x, y) if idx then local delta = dx == 0.0 and dy or dx - local button = delta > 0 and 2 or 1 + local button = delta < 0 and 2 or 1 node:scroll_tabs(button) return true end - + return node.active_view:on_mouse_wheel(dy, dx) end