revert: playhead fixes cause cannot play on MAIN/SECTION-TAB

Revert two changes from 5d31563:
1. Explicit requestAnimationFrame in handlePlayPause (redundant,
   useEffect already handles RAF start after setIsPlaying)
2. setCurrentTime(0) in handleEditSectionInTab (resets global
   currentTime, interferes with MAIN session position)
This commit is contained in:
2026-07-28 09:22:44 +07:00
parent 5d31563df6
commit ea40f0c540
3 changed files with 5 additions and 7 deletions
-2
View File
@@ -8525,7 +8525,6 @@ const App = () => {
}));
setSessionTabs(prev => [...prev, { id: tabId, name: tabName, sectionId: sectionId, tracks: clonedTracks, color: section.color || null }]);
setActiveTab(tabId);
setCurrentTime(0);
};
// Sub Tab: apply effects & merge back (LOOP_EDITOR_2.md §1.2)
@@ -10615,7 +10614,6 @@ const App = () => {
startAudioTimeRef.current = context.currentTime;
startTrackPlayback(currentTime);
setIsPlaying(true);
animationFrameIdRef.current = requestAnimationFrame(updatePlayhead);
}
};
handlePlayPauseRef.current = handlePlayPause;
File diff suppressed because one or more lines are too long