[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #31 from gorhawk/master
Browse files Browse the repository at this point in the history
Optimized mouse up listener
  • Loading branch information
zesik authored Feb 10, 2019
2 parents 6254f62 + bb6ff94 commit d3be447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SplitterLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class SplitterLayout extends React.Component {
}

handleMouseUp() {
this.setState({ resizing: false });
this.setState(prevState => prevState.resizing ? { resizing: false } : null);
}

render() {
Expand Down

0 comments on commit d3be447

Please sign in to comment.