fix: remove clamping in extrapolation of progress of stack animation

This commit is contained in:
Michał Osadnik
2020-01-07 06:46:29 -05:00
committed by GitHub
parent f91d16cd5d
commit d3f5c55dbf

View File

@@ -167,14 +167,12 @@ const getProgressFromGesture = (
return gesture.interpolate({
inputRange: [0, distance],
outputRange: [1, 0],
extrapolate: 'clamp',
});
}
return gesture.interpolate({
inputRange: [distance, 0],
outputRange: [0, 1],
extrapolate: 'clamp',
});
};