diff --git a/src/components/Interactions/HalfTap/HalfTileTouchSurface.tsx b/src/components/Interactions/HalfTap/HalfTileTouchSurface.tsx index a548b509..6c95a676 100644 --- a/src/components/Interactions/HalfTap/HalfTileTouchSurface.tsx +++ b/src/components/Interactions/HalfTap/HalfTileTouchSurface.tsx @@ -48,7 +48,7 @@ export const HalfTileTouchSurface: React.FunctionComponent = ( setParticles((particles) => [...particles, { key, value }]); }; - const scoreChangeHandler = (addend: number) => { + const scoreChangeHandler = (addend: number, powerHold = false) => { if (currentGame.locked) return; if (showPointParticles) { @@ -61,6 +61,8 @@ export const HalfTileTouchSurface: React.FunctionComponent = ( addend: addend, round: roundCurrent, type: scoreType, + power_hold: powerHold, + interaction: 'half-tap', }); dispatch(playerRoundScoreIncrement(playerId, roundCurrent, scoreType == 'increment' ? addend : -addend)); }; @@ -71,7 +73,7 @@ export const HalfTileTouchSurface: React.FunctionComponent = ( underlayColor={currentGame.locked ? 'transparent' : fontColor + '30'} activeOpacity={1} onPress={() => scoreChangeHandler(addendOne)} - onLongPress={() => scoreChangeHandler(addendTwo)}> + onLongPress={() => scoreChangeHandler(addendTwo, true)}> {particles.map((particle) => (