Skip to content

Commit

Permalink
[dotnet] Fix TouchActions Flick overload
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Sep 29, 2021
1 parent cd12f66 commit 992cef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/Interactions/TouchActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public TouchActions Flick(int speedX, int speedY)
int offsetX = Convert.ToInt32(Math.Round(speedX * DefaultFlickDuration.TotalSeconds, 0));
int offsetY = Convert.ToInt32(Math.Round(speedY * DefaultFlickDuration.TotalSeconds, 0));
this.actionBuilder.AddAction(this.defaultTouchscreen.CreatePointerDown(MouseButton.Touch));
this.actionBuilder.AddAction(this.defaultTouchscreen.CreatePointerMove(CoordinateOrigin.Viewport, offsetX, offsetX, DefaultFlickDuration));
this.actionBuilder.AddAction(this.defaultTouchscreen.CreatePointerMove(CoordinateOrigin.Viewport, offsetX, offsetY, DefaultFlickDuration));
this.actionBuilder.AddAction(this.defaultTouchscreen.CreatePointerUp(MouseButton.Touch));
return this;
}
Expand Down

0 comments on commit 992cef2

Please sign in to comment.