targetting arrows update arrow svg state
This commit is contained in:
parent
2a10de6756
commit
52f6e528e4
@ -27,13 +27,15 @@ class TargetSvg extends Component {
|
|||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldComponentUpdate(newProps) {
|
shouldComponentUpdate(newProps, newState) {
|
||||||
if (newProps.game !== this.props.game) return true;
|
if (newProps.game !== this.props.game) return true;
|
||||||
if (newProps.account !== this.props.account) return true;
|
if (newProps.account !== this.props.account) return true;
|
||||||
if (newProps.animating !== this.props.animating) return true;
|
if (newProps.animating !== this.props.animating) return true;
|
||||||
if (newProps.animSkill !== this.props.animSkill) return true;
|
if (newProps.animSkill !== this.props.animSkill) return true;
|
||||||
if (newProps.gameEffectInfo !== this.props.gameEffectInfo) return true;
|
if (newProps.gameEffectInfo !== this.props.gameEffectInfo) return true;
|
||||||
if (newProps.tutorialGame !== this.props.tutorialGame) return true;
|
if (newProps.tutorialGame !== this.props.tutorialGame) return true;
|
||||||
|
if (newState.width !== this.state.width) return true;
|
||||||
|
if (newState.height !== this.state.height) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user