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:
@@ -94,10 +94,12 @@ Contains the index in `items` of the item being displayed.
|
||||
end
|
||||
|
||||
before:onPress(function (event)
|
||||
if event.button ~= 'left' then return end
|
||||
if self.flow == 'x' then decrement() else increment() end
|
||||
end)
|
||||
|
||||
after:onPress(function (event)
|
||||
if event.button ~= 'left' then return end
|
||||
if self.flow == 'x' then increment() else decrement() end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user