فهرست منبع

fix:load percentage on progress bar

prislalima 2 هفته پیش
والد
کامیت
0f89dbbe78
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  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();