@@ -29,6 +29,12 @@ type NormalizedScrollOptions = {
2929 preferProvidedPixels ?: boolean ;
3030} ;
3131
32+ type IosDragCommandOptions = {
33+ defaultDurationMs : number ;
34+ legacyDefaultDurationMs ?: number ;
35+ synthesized ?: boolean ;
36+ } ;
37+
3238type IosRunnerOverrides = Pick <
3339 Interactor ,
3440 | 'tap'
@@ -101,6 +107,7 @@ export function iosRunnerOverrides(
101107 device ,
102108 iosDragCommand ( device , ctx , x1 , y1 , x2 , y2 , durationMs , {
103109 defaultDurationMs : IOS_SWIPE_DEFAULT_DURATION_MS ,
110+ synthesized : device . platform === 'ios' && device . target !== 'tv' ,
104111 } ) ,
105112 runnerOpts ,
106113 ) ;
@@ -265,10 +272,7 @@ function iosDragCommand(
265272 x2 : number ,
266273 y2 : number ,
267274 durationMs : number | undefined ,
268- options : {
269- defaultDurationMs : number ;
270- legacyDefaultDurationMs ?: number ;
271- } ,
275+ options : IosDragCommandOptions ,
272276) : RunnerCommand {
273277 const normalizedDurationMs =
274278 device . platform === 'ios' && device . target !== 'tv'
@@ -281,6 +285,7 @@ function iosDragCommand(
281285 x2,
282286 y2,
283287 ...( normalizedDurationMs !== undefined ? { durationMs : normalizedDurationMs } : { } ) ,
288+ ...( options . synthesized === true ? { synthesized : true } : { } ) ,
284289 appBundleId : ctx . appBundleId ,
285290 } ;
286291}
0 commit comments