fix(w.l.overflow): Fix mouse scrolling

This commit is contained in:
Lucas Schwiderski 2022-06-06 09:45:16 +02:00
parent 0f1dfe13ec
commit c8ec8394c5
No known key found for this signature in database
GPG Key ID: AA12679AAA6DF4D8
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ local function build_grabber(container, initial_x, initial_y, geo)
end
local x, y = matrix:transform_point(mouse.x, mouse.y)
local pos = is_y and x and y
local pos = is_y and y or x
container:set_scroll_factor((start_pos + (pos - start)) / bar_interval)
return true