From b757fa1fd95f52d1aade2300d85049a17875aae0 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sun, 11 Aug 2019 12:28:20 +0800 Subject: [PATCH] fix: resize shift --- src/components/ResizeHandler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ResizeHandler.tsx b/src/components/ResizeHandler.tsx index c4d4582..5a6e59a 100644 --- a/src/components/ResizeHandler.tsx +++ b/src/components/ResizeHandler.tsx @@ -16,7 +16,7 @@ export default class HorizontalResizeHandler extends React.PureComponent componentWillReceiveProps(nextProps: Props) { if (!this.pointerDown) { // update baseSize when not resizing - this.baseSize = this.props.size + this.baseSize = nextProps.size } }