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
pull/6567/head
yparitcher 4 years ago committed by GitHub
parent af3d98aeb7
commit 4639b03c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save