Skip to content

Commit

Permalink
Merge pull request #46 from jirokun/master
Browse files Browse the repository at this point in the history
add onDragStart property
  • Loading branch information
tomkp committed Feb 26, 2016
2 parents c803014 + a24c799 commit c005dd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SplitPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export default React.createClass({
onMouseDown(event) {
this.unFocus();
let position = this.props.split === 'vertical' ? event.clientX : event.clientY;
if (this.props.onDragStart) {
this.props.onDragStart();
}
this.setState({
active: true,
position: position
Expand Down

0 comments on commit c005dd2

Please sign in to comment.