fix: resize shift

This commit is contained in:
EnixCoda 2019-08-11 12:28:20 +08:00
parent dca997dcff
commit b757fa1fd9
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -16,7 +16,7 @@ export default class HorizontalResizeHandler extends React.PureComponent<Props>
componentWillReceiveProps(nextProps: Props) {
if (!this.pointerDown) {
// update baseSize when not resizing
this.baseSize = this.props.size
this.baseSize = nextProps.size
}
}