Jelajahi Sumber

修改动画抓取速度

吴朋磊 1 bulan lalu
induk
melakukan
5f7913e9c8
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/views/targetImprove/practice/knowledgeGraph.vue

+ 2 - 2
src/views/targetImprove/practice/knowledgeGraph.vue

@@ -705,8 +705,8 @@ export default {
         const endRect = endEl.getBoundingClientRect();
         if (!startRect.width || !startRect.height) return Promise.resolve();
 
-        const HOLD_MS = 60;
-        const FLY_MS = 600;
+        const HOLD_MS = 80;
+        const FLY_MS = 800;
         const FADE_MS = 100;
         const theme = this.getZoneGrabTheme(item);
         let backgroundColor = theme.backgroundColor;