ConfigDialog: Gesture range needs to be a Geom

Regression since #7664
Fix #7681
reviewable/pr7684/r1
NiLuJe 3 years ago committed by Frans de Jonge
parent 628aef2099
commit e6027313e9

@ -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(),

Loading…
Cancel
Save