fix(w.l.overflow): Fix mouse scrolling
This commit is contained in:
parent
0f1dfe13ec
commit
c8ec8394c5
|
@ -432,7 +432,7 @@ local function build_grabber(container, initial_x, initial_y, geo)
|
||||||
end
|
end
|
||||||
|
|
||||||
local x, y = matrix:transform_point(mouse.x, mouse.y)
|
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)
|
container:set_scroll_factor((start_pos + (pos - start)) / bar_interval)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue