diff --git a/packages/stack/src/views/Stack/Card.tsx b/packages/stack/src/views/Stack/Card.tsx index d3a50929..30ca870e 100755 --- a/packages/stack/src/views/Stack/Card.tsx +++ b/packages/stack/src/views/Stack/Card.tsx @@ -271,16 +271,15 @@ export default class Card extends React.Component { velocity = nativeEvent.velocityX; } - if ( - gestureDirection === 'horizontal-inverted' || - gestureDirection === 'vertical-inverted' - ) { - translation *= -1; - velocity *= -1; - } + const gestureDirectionFactor = + gestureDirection === 'horizontal' || gestureDirection === 'vertical' + ? 1 + : -1; const closing = - translation + velocity * gestureVelocityImpact > distance / 2 + gestureDirectionFactor * + (translation + velocity * gestureVelocityImpact) > + distance / 2 ? velocity !== 0 || translation !== 0 : false;