Explorar el Código

feature: turn cursor into pointer when moving balloon

lairaalmas hace 9 meses
padre
commit
ad8e954d0e
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      js/games/circleOne.js

+ 3 - 0
js/games/circleOne.js

@@ -1367,6 +1367,7 @@ const circleOne = {
           self.utils.clickCircleHandler(
             self.blocks.cur.x + self.blocks.cur.width
           );
+          document.body.style.cursor = 'auto';
         }
       }
 
@@ -1426,6 +1427,8 @@ const circleOne = {
           self.balloon.x = newX;
           self.basket.x = newX;
 
+          document.body.style.cursor = 'pointer';
+        } else {
           document.body.style.cursor = 'auto';
         }
       }