mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ConfigDialog: Gesture range needs to be a Geom
Regression since #7664 Fix #7681
This commit is contained in:
@@ -1439,13 +1439,13 @@ function ConfigDialog:onTapCloseMenu(arg, ges_ev)
|
||||
end
|
||||
|
||||
function ConfigDialog:onSwipeCloseMenu(arg, ges_ev)
|
||||
local range = {
|
||||
local range = Geom:new{
|
||||
x = DTAP_ZONE_CONFIG.x * Screen:getWidth(),
|
||||
y = DTAP_ZONE_CONFIG.y * Screen:getHeight(),
|
||||
w = DTAP_ZONE_CONFIG.w * Screen:getWidth(),
|
||||
h = DTAP_ZONE_CONFIG.h * Screen:getHeight(),
|
||||
}
|
||||
local range_ext = {
|
||||
local range_ext = Geom:new{
|
||||
x = DTAP_ZONE_CONFIG_EXT.x * Screen:getWidth(),
|
||||
y = DTAP_ZONE_CONFIG_EXT.y * Screen:getHeight(),
|
||||
w = DTAP_ZONE_CONFIG_EXT.w * Screen:getWidth(),
|
||||
|
||||
Reference in New Issue
Block a user