diff --git a/frontend/ui/gesturedetector.lua b/frontend/ui/gesturedetector.lua index 1086ab555..cfe0e8b5a 100644 --- a/frontend/ui/gesturedetector.lua +++ b/frontend/ui/gesturedetector.lua @@ -575,7 +575,7 @@ function GestureDetector:adjustGesCoordinate(ges) if Screen.cur_rotation_mode == 1 then -- in landscape mode rotated 270 if ges.pos then - ges.pos.x, ges.pos.y = (Screen.width - ges.pos.y), (ges.pos.x) + ges.pos.x, ges.pos.y = (Screen:getWidth() - ges.pos.y), (ges.pos.x) end if ges.ges == "swipe" or ges.ges == "pan" or ges.ges == "two_finger_swipe" @@ -612,7 +612,7 @@ function GestureDetector:adjustGesCoordinate(ges) elseif Screen.cur_rotation_mode == 3 then -- in landscape mode rotated 90 if ges.pos then - ges.pos.x, ges.pos.y = (ges.pos.y), (Screen.height - ges.pos.x) + ges.pos.x, ges.pos.y = (ges.pos.y), (Screen:getHeight() - ges.pos.x) end if ges.ges == "swipe" or ges.ges == "pan" or ges.ges == "two_finger_swipe" diff --git a/frontend/ui/input.lua b/frontend/ui/input.lua index 0c9955523..ba2a9d84d 100644 --- a/frontend/ui/input.lua +++ b/frontend/ui/input.lua @@ -330,10 +330,10 @@ function Input:init() ev.code = ABS_X -- We always have to substract from the physical x, -- regardless of the orientation - if (Screen.width