Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/playwright-core/src/client/android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ export class AndroidInput implements api.AndroidInput {
}

async swipe(from: types.Point, segments: types.Point[], steps: number) {
await this._device._channel.inputSwipe({ segments, steps }, kNoTimeout);
// `from` is the first point of the gesture, `segments` are the points following it.
await this._device._channel.inputSwipe({ segments: [from, ...segments], steps }, kNoTimeout);
}

async drag(from: types.Point, to: types.Point, steps: number) {
Expand Down