mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 10:26:43 +00:00
rework mouse buttons, fixes #18
This commit is contained in:
@@ -64,7 +64,8 @@ in the same group change to `false`.
|
||||
@section end
|
||||
--]]--
|
||||
|
||||
self:onPress(function ()
|
||||
self:onPress(function (event)
|
||||
if event.button ~= 'left' then return end
|
||||
for _, widget in ipairs(groups[self.group]) do
|
||||
widget.value = widget == self
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user