mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Disabled touch input: always active gestures (#10624)
This commit is contained in:
@@ -121,7 +121,7 @@ Multiswipes allow you to perform complex gestures built up out of multiple swipe
|
||||
|
||||
These advanced gestures consist of either straight swipes or diagonal swipes. To ensure accuracy, they can't be mixed.]])
|
||||
|
||||
-- If the gesture contains the "toggle_touch_input" action,
|
||||
-- If the gesture contains "toggle_touch_input" or "touch_input_on" actions, or is set "Always active" manually,
|
||||
-- mark it "always active" to make sure that InputContainer won't block it after the IgnoreTouchInput Event.
|
||||
function Gestures:isGestureAlwaysActive(ges, multiswipe_directions)
|
||||
-- Handle multiswipes properly
|
||||
@@ -134,7 +134,8 @@ function Gestures:isGestureAlwaysActive(ges, multiswipe_directions)
|
||||
end
|
||||
end
|
||||
|
||||
return self.gestures[ges] and self.gestures[ges].toggle_touch_input
|
||||
local gest = self.gestures[ges]
|
||||
return gest and (gest.toggle_touch_input or gest.touch_input_on or (gest.settings and gest.settings.always_active))
|
||||
end
|
||||
|
||||
function Gestures:init()
|
||||
|
||||
Reference in New Issue
Block a user