targetting arrows update arrow svg state

This commit is contained in:
Mashy 2019-10-28 21:52:37 +10:00
parent 2a10de6756
commit 52f6e528e4

View File

@ -27,13 +27,15 @@ class TargetSvg extends Component {
}, 500);
}
shouldComponentUpdate(newProps) {
shouldComponentUpdate(newProps, newState) {
if (newProps.game !== this.props.game) return true;
if (newProps.account !== this.props.account) return true;
if (newProps.animating !== this.props.animating) return true;
if (newProps.animSkill !== this.props.animSkill) return true;
if (newProps.gameEffectInfo !== this.props.gameEffectInfo) 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;
}