Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 19a7cc2

Browse files
chore: update pan gesture
1 parent 21d5d60 commit 19a7cc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/device-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export class DeviceManager implements IDeviceManager {
209209

210210
args.device.statBarHeight = sessionInfoDetails.statBarHeight;
211211
args.device.viewportRect = DeviceManager.convertViewportRectToIRectangle(sessionInfoDetails.viewportRect);
212+
args.device.token = args.device.token || sessionInfoDetails.udid;
212213

213214
return args.device;
214215
}

‎lib/ui-element.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,7 @@ export class UIElement {
533533
logInfo("Start pan gesture!");
534534
const rect = await this.getRectangle();
535535
const action = new this._wd.TouchAction(this._driver);
536-
await action.press({ x: rect.x + initPointOffset.x, y: rect.y + initPointOffset.y });
537-
await this.doubleTap();
536+
await action.press({ x: rect.x + initPointOffset.x, y: rect.y + initPointOffset.y }).wait(200);
538537
if (offsets.length > 1) {
539538
for (let index = 1; index < offsets.length; index++) {
540539
const p = offsets[index];

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /