소스 검색

feature: turn cursor into pointer when moving balloon

lairaalmas 9 달 전
부모
커밋
ad8e954d0e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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';
         }
       }