From c8ec8394c511961926cc20b70f1e56af589f3d9e Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Mon, 6 Jun 2022 09:45:16 +0200 Subject: [PATCH] fix(w.l.overflow): Fix mouse scrolling --- lib/wibox/layout/overflow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wibox/layout/overflow.lua b/lib/wibox/layout/overflow.lua index dbf982981..d3d76a3bb 100644 --- a/lib/wibox/layout/overflow.lua +++ b/lib/wibox/layout/overflow.lua @@ -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