From a5fdf0ee2f19ef16fbd799a900f72aa92d52f4a0 Mon Sep 17 00:00:00 2001 From: mogeta Date: Wed, 12 Feb 2020 14:31:30 +0900 Subject: [PATCH] fix pinch position in landscape --- poco/utils/airtest/input.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poco/utils/airtest/input.py b/poco/utils/airtest/input.py index 6a0919af..9f40f20a 100644 --- a/poco/utils/airtest/input.py +++ b/poco/utils/airtest/input.py @@ -108,11 +108,13 @@ def applyMotionEvents(self, events): contact = e[2] x, y = e[1] pos = self.get_target_pos(x, y) + pos = current_device()._touch_point_by_orientation(pos) me = DownEvent(pos, contact) elif t == 'm': contact = e[2] x, y = e[1] pos = self.get_target_pos(x, y) + pos = current_device()._touch_point_by_orientation(pos) me = MoveEvent(pos, contact) elif t == 'u': contact = e[1]