|
|
@@ -17,11 +17,11 @@ export class RountangleComponent extends React.Component<RountangleProps, Rounta
|
|
|
private rountangleRef: React.RefObject<HTMLDivElement>
|
|
|
|
|
|
shouldComponentUpdate(nextProps: Readonly<RountangleProps>, nextState: Readonly<RountangleState>, nextContext: any): boolean {
|
|
|
- return this.props.posX !== nextProps.posX
|
|
|
- || this.props.posY !== nextProps.posY
|
|
|
- || this.props.posZ !== nextProps.posZ
|
|
|
- || this.props.width !== nextProps.width
|
|
|
- || this.props.height !== nextProps.height
|
|
|
+ return this.props.posX !== nextProps.posX
|
|
|
+ || this.props.posY !== nextProps.posY
|
|
|
+ || this.props.posZ !== nextProps.posZ
|
|
|
+ || this.props.width !== nextProps.width
|
|
|
+ || this.props.height !== nextProps.height
|
|
|
|| this.state.dragging !== nextState.dragging;
|
|
|
}
|
|
|
|