fix: sync piano roll playhead with main timeline position

handleEditMidiInTab now sets currentTime relative to item start:
currentTime = Math.max(0, mainTimelineCurrentTime - midiItem.startTime)
so playhead reflects the main timeline position instead of bar 0.
This commit is contained in:
2026-07-27 19:29:51 +07:00
parent fd23b8c4b0
commit db45efe53c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8294,7 +8294,7 @@ const App = () => {
buffer: silentBuffer,
instrumentProgram: track.instrumentProgram,
instrumentName: track.instrumentName,
currentTime: 0,
currentTime: Math.max(0, currentTime - midiItem.startTime),
isPlaying: false,
selectionStart: null,
selectionEnd: null,
File diff suppressed because one or more lines are too long