Skip to content

Commit

Permalink
Revert "fix: added swipe points in meta for contant swipe values & fi…
Browse files Browse the repository at this point in the history
…x yPoint… (#2213)"

This reverts commit 65d4ae1.
  • Loading branch information
amanjeetsingh150 committed Jan 9, 2025
1 parent eadbad8 commit fb99638
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
),
)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit fb99638

Please sign in to comment.