disable hover info during anim

This commit is contained in:
Mashy 2019-10-17 17:44:05 +10:00
parent b896a7ee42
commit 38899d31d0

View File

@ -34,6 +34,7 @@ const addState = connect(
function Skill(props) { function Skill(props) {
const { const {
animating,
construct, construct,
game, game,
i, i,
@ -49,6 +50,7 @@ function Skill(props) {
function hoverInfo(e, info) { function hoverInfo(e, info) {
e.stopPropagation(); e.stopPropagation();
if (animating) return false;
return setGameInfo(info); return setGameInfo(info);
} }
if (!s || !game) { if (!s || !game) {