feat: 注释掉播放控制器中的自动暂停逻辑,优化播放时间处理

This commit is contained in:
xudan 2025-10-09 14:40:39 +08:00
parent de58022508
commit e3f3ab5c2a

View File

@ -167,10 +167,10 @@ export function usePlaybackWebSocket(editorService: ShallowRef<EditorService | u
batchUpdateRobots(updates);
}
if (isPlaying.value && currentTime.value >= totalDuration.value && totalDuration.value > 0) {
pause();
currentTime.value = totalDuration.value;
}
// if (isPlaying.value && currentTime.value >= totalDuration.value && totalDuration.value > 0) {
// pause();
// currentTime.value = totalDuration.value;
// }
editorService.value?.render();
animationFrameId = requestAnimationFrame(renderLoop);