Fix tap for top menu occasionally not working

It was missing some ordering hints to have it always
precede taps to change page.
(Somehow noticed only when we reached > 32 gestures
registered, which may have introduced some shuffling,
while previously the addition order was somehow
preserved...)
pull/4864/head
poire-z 5 years ago
parent 433b89638a
commit 44529dbbc9

@ -589,7 +589,7 @@ function ReaderGesture:setupGesture(ges, action)
if self.is_docless then if self.is_docless then
overrides = { 'filemanager_tap' } overrides = { 'filemanager_tap' }
else else
overrides = { 'readerfooter_tap', } overrides = { 'readerfooter_tap' }
end end
elseif ges == "tap_left_bottom_corner" then elseif ges == "tap_left_bottom_corner" then
ges_type = "tap" ges_type = "tap"
@ -600,7 +600,7 @@ function ReaderGesture:setupGesture(ges, action)
if self.is_docless then if self.is_docless then
overrides = { 'filemanager_tap' } overrides = { 'filemanager_tap' }
else else
overrides = { 'readerfooter_tap', 'filemanager_tap' } overrides = { 'readerfooter_tap' }
end end
elseif ges == "two_finger_swipe_west" then elseif ges == "two_finger_swipe_west" then
ges_type = "two_finger_swipe" ges_type = "two_finger_swipe"

@ -97,6 +97,7 @@ function ReaderMenu:onReaderReady()
ratio_x = DTAP_ZONE_MENU.x, ratio_y = DTAP_ZONE_MENU.y, ratio_x = DTAP_ZONE_MENU.x, ratio_y = DTAP_ZONE_MENU.y,
ratio_w = DTAP_ZONE_MENU.w, ratio_h = DTAP_ZONE_MENU.h, ratio_w = DTAP_ZONE_MENU.w, ratio_h = DTAP_ZONE_MENU.h,
}, },
overrides = { 'tap_forward', 'tap_backward', },
handler = function(ges) return self:onTapShowMenu(ges) end, handler = function(ges) return self:onTapShowMenu(ges) end,
}, },
{ {

Loading…
Cancel
Save