Browse Source

feature: turn cursor into pointer when moving balloon

lairaalmas 9 tháng trước cách đây
mục cha
commit
ad8e954d0e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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';
         }
       }