Private
Public Access
1
0

bugfix center mine counter animation

This commit is contained in:
2016-10-31 18:21:53 +01:00
parent 242e52f8e4
commit 0246991be9

View File

@@ -322,7 +322,8 @@ class GridControl extends React.Component {
mines: this.refs.userControl.state.mines - this.state.foundUserMineCache,
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 */
this.refs.userControl.refs[activePlayer].setState({