Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: stack with gesture enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk committed Sep 1, 2019
1 parent c7a79a6 commit 55ec815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/stack/src/views/Stack/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ export default class Card extends React.Component<Props> {
nativeEvent: {
translationX: this.gestureUntraversed,
velocityX: this.velocityUntraversed,
state: this.gestureState,
},
},
]);
Expand Down Expand Up @@ -634,7 +635,7 @@ export default class Card extends React.Component<Props> {
})
);

// Keep track of the style in a property to avoid changing the animated node when deps change`
// Keep track of the style in a property to avoid changing the animated node when deps change
// The style shouldn't change in the middle of the animation and should refer to what was there at the start of it
// Which will be the last value when just before the render which started the animation
// We need to make sure to update this when the running animation ends
Expand Down

0 comments on commit 55ec815

Please sign in to comment.