From 33367d3a6c1df607f629d27db6c345d5ad3fd269 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 18 Dec 2016 20:26:10 -0800 Subject: [PATCH] inputcontainer(fix): update gesture range on screen resize properly --- frontend/ui/widget/container/inputcontainer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/container/inputcontainer.lua b/frontend/ui/widget/container/inputcontainer.lua index 969d2652e..2ff39aa38 100644 --- a/frontend/ui/widget/container/inputcontainer.lua +++ b/frontend/ui/widget/container/inputcontainer.lua @@ -174,7 +174,7 @@ Updates touch zones based on new screen dimensions. ]] function InputContainer:updateTouchZonesOnScreenResize(new_screen_dimen) for _, tzone in ipairs(self._touch_zones) do - local range = tzone.gs_range + local range = tzone.gs_range.range range.x = new_screen_dimen.w * tzone.def.screen_zone.ratio_x range.y = new_screen_dimen.h * tzone.def.screen_zone.ratio_y range.w = new_screen_dimen.w * tzone.def.screen_zone.ratio_w