mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user