From ee9e27f969ccd8acb5b71546fcb9bd7e44bca8b7 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 15 三月 2024 10:29:11 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/player.js |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index 35edc66..f7503c9 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/zy-asrs-flow/src/pages/map/player.js
@@ -22,7 +22,7 @@
         this.activateMapScale();
         this.activateMapPan();
         this.showCoordinates();
-        this.appTicker();
+        this.getStartedTicker();
     }
 
     activateMapEvent = (leftEvent, rightEvent) => {
@@ -294,7 +294,7 @@
     }
 
     hideStarryBackground = () => {
-        if(this.starryTicker) {
+        if (this.starryTicker) {
             this.app.ticker.remove(this.starryTicker);
             this.starryTicker = null;
         }
@@ -315,8 +315,10 @@
         this.didClickSprite = value;
     }
 
-    appTicker = () => {
-        TWEEDLE.Group.shared.update();
+    getStartedTicker = () => {
+        this.app.ticker.add((delta) => {
+            TWEEDLE.Group.shared.update();
+        });
     }
 
 }

--
Gitblit v1.9.1