readermenu(fix): override pan gesture from scrolling

This commit is contained in:
Qingping Hou
2017-04-23 23:33:12 -07:00
committed by Frans de Jonge
parent 1850ebca0d
commit 55ec64a859
3 changed files with 12 additions and 2 deletions

View File

@@ -93,6 +93,16 @@ function ReaderMenu:onReaderReady()
overrides = { "rolling_swipe", "paging_swipe", },
handler = function(ges) return self:onSwipeShowMenu(ges) end,
},
{
id = "readermenu_pan",
ges = "pan",
screen_zone = {
ratio_x = DTAP_ZONE_MENU.x, ratio_y = DTAP_ZONE_MENU.y,
ratio_w = DTAP_ZONE_MENU.w, ratio_h = DTAP_ZONE_MENU.h,
},
overrides = { "rolling_pan", "paging_pan", },
handler = function(ges) return self:onSwipeShowMenu(ges) end,
},
})
end