mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[UX] Extend edge zones (#5181)
See: https://github.com/koreader/koreader/pull/5179#discussion_r310676845
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user