corrigindo scroll após movimentações e edições das patterns na playlist

This commit is contained in:
JotaChina committed 2025-12-27 13:29:57 -03:00
1 parent 064002b1ba
commit 5a366fa29d
1 file changed
-8
-8
View File
@@ -431,12 +431,6 @@ export function renderAudioEditor() {
menu.style.top = `${e.clientY}px`;
});
// Recriação Container Pistas
const newTrackContainer = existingTrackContainer.cloneNode(false);
tracksParent.replaceChild(newTrackContainer, existingTrackContainer);
// ✅ único scroller horizontal/vertical do editor
const scrollEl = newTrackContainer; // #audio-track-container
// === RENDERIZAÇÃO DAS PISTAS (LANES) ===
// CORREÇÃO: Junta as pistas de áudio com as Basslines (que estão no Pattern State)
@@ -1394,8 +1388,6 @@ export function renderAudioEditor() {
} catch {}
});
}
export function updateAudioEditorUI() {
const playBtn = document.getElementById("audio-editor-play-btn");
if (!playBtn) return;