Skip to content

Commit b3d9ba9

Browse files
author
Kamran Asif
committed
Adding row index to scroll start/end callback
1 parent a504677 commit b3d9ba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FixedDataTable.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ var FixedDataTable = React.createClass({
10321032
if (this.isMounted() && !this._isScrolling) {
10331033
this._isScrolling = true;
10341034
if (this.props.onScrollStart) {
1035-
this.props.onScrollStart(this.state.scrollX, this.state.scrollY);
1035+
this.props.onScrollStart(this.state.scrollX, this.state.scrollY, this.state.firstRowIndex);
10361036
}
10371037
}
10381038
},
@@ -1042,7 +1042,7 @@ var FixedDataTable = React.createClass({
10421042
this._isScrolling = false;
10431043
this.setState({redraw: true});
10441044
if (this.props.onScrollEnd) {
1045-
this.props.onScrollEnd(this.state.scrollX, this.state.scrollY);
1045+
this.props.onScrollEnd(this.state.scrollX, this.state.scrollY, this.state.firstRowIndex);
10461046
}
10471047
}
10481048
},

0 commit comments

Comments
 (0)