You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/android/src/device.ts
+39-3Lines changed: 39 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,17 @@ export class AndroidDevice implements AbstractInterface {
148
148
}
149
149
},
150
150
pinch: async(center,opts)=>{
151
+
// yadb only injects gestures into the default display, so a non-default
152
+
// display would silently land the pinch on the main screen. Fail fast
153
+
// instead of misleading the caller.
154
+
if(
155
+
typeofthis.options?.displayId==='number'&&
156
+
this.options.displayId!==0
157
+
){
158
+
thrownewError(
159
+
`Pinch is not supported on a non-default display (displayId=${this.options.displayId}). The underlying yadb tool only injects gestures into the default display.`,
0 commit comments