From fb99638bc51de82a0974087798510b863adbf1d3 Mon Sep 17 00:00:00 2001 From: Amanjeet Singh Date: Thu, 9 Jan 2025 18:14:59 +0530 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20added=20swipe=20points=20in=20?= =?UTF-8?q?meta=20for=20contant=20swipe=20values=20&=20fix=20yPoint?= =?UTF-8?q?=E2=80=A6=20(#2213)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 65d4ae19f458901e9eddc7be0eccf6e69ecd6efb. --- .../src/main/java/maestro/orchestra/Orchestra.kt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt b/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt index a5fec61b36..95fa60e1f3 100644 --- a/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt +++ b/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt @@ -1244,11 +1244,11 @@ class Orchestra( action = Action.SwipePoint.WithEndPoint( startPoint = Point( startPoints[0] * deviceInfo.widthGrid / 100, - startPoints[1] * deviceInfo.heightGrid / 100 + startPoints[1] * deviceInfo.widthGrid / 100 ), endPoint = Point( endPoint[0] * deviceInfo.widthGrid / 100, - endPoint[1] * deviceInfo.heightGrid / 100 + endPoint[1] * deviceInfo.widthGrid / 100 ), ), ) @@ -1277,13 +1277,6 @@ class Orchestra( } start != null && end != null -> { - val metadata = getMetadata(maestroCommand).copy( - action = Action.SwipePoint.WithEndPoint( - startPoint = Point(start.x, start.y), - endPoint = Point(end.x,end.y), - ), - ) - updateMetadata(maestroCommand, metadata); maestro.swipe( startPoint = start, endPoint = end,