[UX] Extend edge zones (#5181)

See: https://github.com/koreader/koreader/pull/5179#discussion_r310676845
This commit is contained in:
Robert
2019-08-05 21:24:58 +02:00
committed by Frans de Jonge
parent 30f39979f6
commit dac2458427
2 changed files with 15 additions and 15 deletions

View File

@@ -845,25 +845,25 @@ function ReaderGesture:setupGesture(ges, action)
local direction, distance
local zone_fullscreen = {
ratio_x = 0.0, ratio_y = 0,
ratio_x = 0, ratio_y = 0,
ratio_w = 1, ratio_h = 1,
}
local zone_left_edge = {
ratio_x = 0, ratio_y = 1/8,
ratio_w = 1/8, ratio_h = 7/8,
ratio_x = 0, ratio_y = 0,
ratio_w = 1/8, ratio_h = 1,
}
local zone_right_edge = {
ratio_x = 7/8, ratio_y = 1/8,
ratio_w = 1/8, ratio_h = 7/8,
ratio_x = 7/8, ratio_y = 0,
ratio_w = 1/8, ratio_h = 1,
}
local zone_top_edge = {
ratio_x = 1/8, ratio_y = 0,
ratio_w = 7/8, ratio_h = 1/8,
ratio_x = 0, ratio_y = 0,
ratio_w = 1, ratio_h = 1/8,
}
local zone_bottom_edge = {
ratio_x = 1/8, ratio_y = 7/8,
ratio_w = 7/8, ratio_h = 1/8,
ratio_x = 0, ratio_y = 7/8,
ratio_w = 1, ratio_h = 1/8,
}
-- legacy global variable DTAP_ZONE_FLIPPING may still be defined in default.persistent.lua