Browse Source

fix: load percentage of progress bar

priscila.snl 2 tuần trước cách đây
mục cha
commit
e6a998f537
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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();