Skip to content

Commit 34f52b4

Browse files
authored
Merge pull request #109 from Li357/master
Adjust background scale to prevent foreground from scaling out
2 parents ddb36f5 + 8aab6e8 commit 34f52b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class ParallaxScrollView extends Component {
255255
{
256256
scale: interpolate(scrollY, {
257257
inputRange: [-viewHeight, 0],
258-
outputRange: [outputScaleValue, 1],
258+
outputRange: [outputScaleValue * 1.5, 1],
259259
extrapolate: 'clamp'
260260
})
261261
}

0 commit comments

Comments
 (0)