Skip to content

Commit

Permalink
fix reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 5, 2024
1 parent 0c6a2dd commit 1bc34c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/custom-animations/GestureActionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,9 @@ function createInterpolation({
}

if (side === 'left') {
res = {
inputRange: res.inputRange.toReversed(),
outputRange: res.outputRange.toReversed(),
}
// Reverse the input/output ranges
res.inputRange.reverse()
res.outputRange.reverse()
}

return res
Expand Down

0 comments on commit 1bc34c2

Please sign in to comment.