@@ -377,7 +377,7 @@ function dispatchStart(
377
377
const type = 'tap:start' ;
378
378
const onTapStart = props . onTapStart ;
379
379
if ( onTapStart != null ) {
380
- const payload = { ... state . gestureState , type} ;
380
+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
381
381
dispatchDiscreteEvent ( context , payload , onTapStart ) ;
382
382
}
383
383
}
@@ -402,7 +402,7 @@ function dispatchUpdate(
402
402
const type = 'tap:update' ;
403
403
const onTapUpdate = props . onTapUpdate ;
404
404
if ( onTapUpdate != null ) {
405
- const payload = { ... state . gestureState , type} ;
405
+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
406
406
dispatchUserBlockingEvent ( context , payload , onTapUpdate ) ;
407
407
}
408
408
}
@@ -415,7 +415,7 @@ function dispatchEnd(
415
415
const type = 'tap:end' ;
416
416
const onTapEnd = props . onTapEnd ;
417
417
if ( onTapEnd != null ) {
418
- const payload = { ... state . gestureState , type} ;
418
+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
419
419
dispatchDiscreteEvent ( context , payload , onTapEnd ) ;
420
420
}
421
421
}
@@ -428,7 +428,7 @@ function dispatchCancel(
428
428
const type = 'tap:cancel' ;
429
429
const onTapCancel = props . onTapCancel ;
430
430
if ( onTapCancel != null ) {
431
- const payload = { ... state . gestureState , type} ;
431
+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
432
432
dispatchDiscreteEvent ( context , payload , onTapCancel ) ;
433
433
}
434
434
}
0 commit comments