瀏覽代碼

feat: 保存

gemercheung 1 年之前
父節點
當前提交
8651494658
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/canvasPlayer.js

+ 1 - 1
src/utils/canvasPlayer.js

@@ -223,7 +223,7 @@ export class CanvasPlayer extends Mitt {
       );
       const deltaHeight = clip.total * 100 - window.innerHeight;
       const prcess = height / deltaHeight;
-      const frame = Math.floor(clip.total * prcess);
+      const frame = Math.round(clip.total * prcess);
       return clamp(frame, 0, clip.total);
     }
     return 0;