Skip to content

Commit

Permalink
fix: translation check for panGesture value
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Apr 23, 2020
1 parent da873f6 commit a46fa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ const ModalizeBase = (

if (panGestureAnimatedValue) {
const diff = Math.abs(translationY / (endHeight - offset));
const y = translationY < 0 ? diff : 1 - diff;
const y = translationY <= 0 ? diff : 1 - diff;
let value: number;

if (modalPosition === 'initial' && translationY > 0) {
Expand Down

0 comments on commit a46fa43

Please sign in to comment.