Forráskód Böngészése

fix: load percentage of progress bar

priscila.snl 2 hete
szülő
commit
e6a998f537
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      js/screens/map.js

+ 6 - 0
js/screens/map.js

@@ -246,6 +246,12 @@ const mapState = {
     const x = game.math.getMouse(mouseEvent).x;
     const y = game.math.getMouse(mouseEvent).y;
 
+    // bloqueia clique antes da hora
+  if (!self.waitUserAction) {
+    navigation.onInputDown(x, y);
+    return;
+  }
+
     if (game.math.isOverIcon(x, y, self.continueButton)) {
       if (audioStatus) game.audio.popSound.play();
       self.loadGame();