mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Reader: strict ordering of tap & hold gestures (#5789)
The lack of proper overrides could make their order/precedence/priority non-deterministic.
This commit is contained in:
@@ -34,8 +34,18 @@ function ReaderLink:init()
|
||||
ratio_w = 1, ratio_h = 1,
|
||||
},
|
||||
overrides = {
|
||||
-- Tap on links have priority over everything (it can
|
||||
-- be disabled with "Tap to follow links" menu item)
|
||||
"tap_forward",
|
||||
"tap_backward",
|
||||
"readermenu_tap",
|
||||
"readerconfigmenu_tap",
|
||||
"readerhighlight_tap",
|
||||
"readerfooter_tap",
|
||||
"tap_top_left_corner",
|
||||
"tap_top_right_corner",
|
||||
"tap_left_bottom_corner",
|
||||
"tap_right_bottom_corner",
|
||||
},
|
||||
handler = function(ges) return self:onTap(_, ges) end,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user