Dispatcher: incremental gesture fix (#6565)

have a user set number override a gesture (gestures will still work when set to 0), this allows incremental FL changes with a tap gesture
This commit is contained in:
yparitcher
2020-08-25 15:07:17 -04:00
committed by GitHub
parent af3d98aeb7
commit 4639b03c29

View File

@@ -585,7 +585,7 @@ function Dispatcher:execute(ui, settings, gesture)
end
-- the event can accept a gesture object or a number
if settingsList[k].category == "incrementalnumber" then
local arg = gesture or v
local arg = v ~= 0 and v or gesture or 0
ui:handleEvent(Event:new(settingsList[k].event, arg))
end
end