mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[RFC] Make default UI tapzones more generous (#6918)
* Top menu & bottom menu tapzones are now full-width, thanks to the now sane override system. * A separate, extra tapzone was also created for each of them to provide a taller, but narrower tapzone extension (one that doesn't clash with the prev/next tapzones). * The footer tapzone was made much taller.
This commit is contained in:
@@ -101,6 +101,18 @@ function ReaderMenu:onReaderReady()
|
||||
},
|
||||
handler = function(ges) return self:onTapShowMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readermenu_ext_tap",
|
||||
ges = "tap",
|
||||
screen_zone = {
|
||||
ratio_x = DTAP_ZONE_MENU_EXT.x, ratio_y = DTAP_ZONE_MENU_EXT.y,
|
||||
ratio_w = DTAP_ZONE_MENU_EXT.w, ratio_h = DTAP_ZONE_MENU_EXT.h,
|
||||
},
|
||||
overrides = {
|
||||
"readermenu_tap",
|
||||
},
|
||||
handler = function(ges) return self:onTapShowMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readermenu_swipe",
|
||||
ges = "swipe",
|
||||
@@ -114,6 +126,18 @@ function ReaderMenu:onReaderReady()
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readermenu_ext_swipe",
|
||||
ges = "swipe",
|
||||
screen_zone = {
|
||||
ratio_x = DTAP_ZONE_MENU_EXT.x, ratio_y = DTAP_ZONE_MENU_EXT.y,
|
||||
ratio_w = DTAP_ZONE_MENU_EXT.w, ratio_h = DTAP_ZONE_MENU_EXT.h,
|
||||
},
|
||||
overrides = {
|
||||
"readermenu_swipe",
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readermenu_pan",
|
||||
ges = "pan",
|
||||
@@ -127,6 +151,18 @@ function ReaderMenu:onReaderReady()
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readermenu_ext_pan",
|
||||
ges = "pan",
|
||||
screen_zone = {
|
||||
ratio_x = DTAP_ZONE_MENU_EXT.x, ratio_y = DTAP_ZONE_MENU_EXT.y,
|
||||
ratio_w = DTAP_ZONE_MENU_EXT.w, ratio_h = DTAP_ZONE_MENU_EXT.h,
|
||||
},
|
||||
overrides = {
|
||||
"readermenu_pan",
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowMenu(ges) end,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user