mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 17:31:06 +08:00
fix: remove clamping in extrapolation of progress of stack animation
This commit is contained in:
@@ -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',
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user