bugfix center mine counter animation
This commit is contained in:
@@ -322,7 +322,8 @@ class GridControl extends React.Component {
|
|||||||
mines: this.refs.userControl.state.mines - this.state.foundUserMineCache,
|
mines: this.refs.userControl.state.mines - this.state.foundUserMineCache,
|
||||||
foundMines: true
|
foundMines: true
|
||||||
}, () => {
|
}, () => {
|
||||||
this.refs.userControl.setState({foundMines: false});
|
/** because of CSS animation in .found-mine */
|
||||||
|
setTimeout(() => this.refs.userControl.setState({foundMines: false}), 500);
|
||||||
|
|
||||||
/** add the found mines to the active Player */
|
/** add the found mines to the active Player */
|
||||||
this.refs.userControl.refs[activePlayer].setState({
|
this.refs.userControl.refs[activePlayer].setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user