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:
@@ -50,6 +50,18 @@ function ReaderConfig:initGesListener()
|
||||
},
|
||||
handler = function() return self:onTapShowConfigMenu() end,
|
||||
},
|
||||
{
|
||||
id = "readerconfigmenu_ext_tap",
|
||||
ges = "tap",
|
||||
screen_zone = {
|
||||
ratio_x = DTAP_ZONE_CONFIG_EXT.x, ratio_y = DTAP_ZONE_CONFIG_EXT.y,
|
||||
ratio_w = DTAP_ZONE_CONFIG_EXT.w, ratio_h = DTAP_ZONE_CONFIG_EXT.h,
|
||||
},
|
||||
overrides = {
|
||||
"readerconfigmenu_tap",
|
||||
},
|
||||
handler = function() return self:onTapShowConfigMenu() end,
|
||||
},
|
||||
{
|
||||
id = "readerconfigmenu_swipe",
|
||||
ges = "swipe",
|
||||
@@ -63,6 +75,18 @@ function ReaderConfig:initGesListener()
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowConfigMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readerconfigmenu_ext_swipe",
|
||||
ges = "swipe",
|
||||
screen_zone = {
|
||||
ratio_x = DTAP_ZONE_CONFIG_EXT.x, ratio_y = DTAP_ZONE_CONFIG_EXT.y,
|
||||
ratio_w = DTAP_ZONE_CONFIG_EXT.w, ratio_h = DTAP_ZONE_CONFIG_EXT.h,
|
||||
},
|
||||
overrides = {
|
||||
"readerconfigmenu_swipe",
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowConfigMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readerconfigmenu_pan",
|
||||
ges = "pan",
|
||||
@@ -76,6 +100,18 @@ function ReaderConfig:initGesListener()
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowConfigMenu(ges) end,
|
||||
},
|
||||
{
|
||||
id = "readerconfigmenu_ext_pan",
|
||||
ges = "pan",
|
||||
screen_zone = {
|
||||
ratio_x = DTAP_ZONE_CONFIG_EXT.x, ratio_y = DTAP_ZONE_CONFIG_EXT.y,
|
||||
ratio_w = DTAP_ZONE_CONFIG_EXT.w, ratio_h = DTAP_ZONE_CONFIG_EXT.h,
|
||||
},
|
||||
overrides = {
|
||||
"readerconfigmenu_pan",
|
||||
},
|
||||
handler = function(ges) return self:onSwipeShowConfigMenu(ges) end,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user