Skip to content

Commit

Permalink
Merge pull request #536 from Pana/master
Browse files Browse the repository at this point in the history
multigrid support onScroll
  • Loading branch information
bvaughn authored Jan 12, 2017
2 parents 6b5c964 + 8b74fc6 commit f7bcf22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/MultiGrid/MultiGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,16 @@ export default class MultiGrid extends Component {
}
}

_onScroll ({ scrollLeft, scrollTop }) {
_onScroll (scrollInfo) {
const {scrollLeft, scrollTop} = scrollInfo
this.setState({
scrollLeft,
scrollTop
})
const onScroll = this.props.onScroll
if (onScroll) {
onScroll(scrollInfo)
}
}

_renderBottomLeftGrid (props) {
Expand Down

0 comments on commit f7bcf22

Please sign in to comment.