@@ -377,7 +377,7 @@ function dispatchStart(
377377 const type = 'tap:start' ;
378378 const onTapStart = props . onTapStart ;
379379 if ( onTapStart != null ) {
380- const payload = { ... state . gestureState , type} ;
380+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
381381 dispatchDiscreteEvent ( context , payload , onTapStart ) ;
382382 }
383383}
@@ -402,7 +402,7 @@ function dispatchUpdate(
402402 const type = 'tap:update' ;
403403 const onTapUpdate = props . onTapUpdate ;
404404 if ( onTapUpdate != null ) {
405- const payload = { ... state . gestureState , type} ;
405+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
406406 dispatchUserBlockingEvent ( context , payload , onTapUpdate ) ;
407407 }
408408}
@@ -415,7 +415,7 @@ function dispatchEnd(
415415 const type = 'tap:end' ;
416416 const onTapEnd = props . onTapEnd ;
417417 if ( onTapEnd != null ) {
418- const payload = { ... state . gestureState , type} ;
418+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
419419 dispatchDiscreteEvent ( context , payload , onTapEnd ) ;
420420 }
421421}
@@ -428,7 +428,7 @@ function dispatchCancel(
428428 const type = 'tap:cancel' ;
429429 const onTapCancel = props . onTapCancel ;
430430 if ( onTapCancel != null ) {
431- const payload = { ... state . gestureState , type} ;
431+ const payload = context . objectAssign ( { } , state . gestureState , { type} ) ;
432432 dispatchDiscreteEvent ( context , payload , onTapCancel ) ;
433433 }
434434}
0 commit comments