Skip to content

Commit 0b70b73

Browse files
committed
added scrollEvent callback
1 parent a7b73e3 commit 0b70b73

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
@@ -178,7 +178,7 @@ class ParallaxScrollView extends Component {
178178
onChangeHeaderVisibility,
179179
onScroll: prevOnScroll = e => {}
180180
} = this.props
181-
181+
this.props.scrollEvent && this.props.scrollEvent(e)
182182
const p = pivotPoint(parallaxHeaderHeight, stickyHeaderHeight)
183183

184184
// This optimization wont run, since we update the animation value directly in onScroll event

0 commit comments

Comments
 (0)