Correct the inverted tabs scrolling

This commit is contained in:
jgmdev 2023-02-06 15:44:19 -04:00
parent a2acc6d770
commit 02a99b17fe
1 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ function RootView:on_mouse_wheel(dy, dx)
local idx = node:get_tab_overlapping_point(x, y) local idx = node:get_tab_overlapping_point(x, y)
if idx then if idx then
local delta = dx == 0.0 and dy or dx 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) node:scroll_tabs(button)
return true return true
end end