From 196748723841380e97665975bd3b52c3e0fc098e Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Thu, 27 Mar 2025 04:28:35 +0100 Subject: [PATCH] List fix for monitors --- src/elements/List.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elements/List.lua b/src/elements/List.lua index c64dfb4..f9c7d70 100644 --- a/src/elements/List.lua +++ b/src/elements/List.lua @@ -119,7 +119,7 @@ end --- @return boolean Whether the event was handled --- @protected function List:mouse_click(button, x, y) - if button == 1 and self:isInBounds(x, y) and self.get("selectable") then + if self:isInBounds(x, y) and self.get("selectable") then local _, index = self:getRelativePosition(x, y) local adjustedIndex = index + self.get("offset") local items = self.get("items") @@ -144,7 +144,7 @@ function List:mouse_click(button, x, y) if item.callback then item.callback(self) end - + self:fireEvent("mouse_click", button, x, y) self:fireEvent("select", adjustedIndex, item) self:updateRender() return true