feat: preview all the notes/regions during resizing/moving multiple notes and regions

This commit is contained in:
Xiaohan-Tian
2026-05-19 17:35:09 -07:00
parent 06e2162eea
commit 4b5b5c8d76
6 changed files with 889 additions and 169 deletions
@@ -239,8 +239,8 @@ const PianoRollContent: React.FC<PianoRollContentProps> = ({
const noteId = note.getId();
// Check if this note is being resized or dragged and has a temporary style
if ((resizingNoteId === noteId || draggingNoteId === noteId) && tempNoteStyles[noteId]) {
// Use preview geometry whenever this note has an active temporary style.
if (tempNoteStyles[noteId]) {
// Use the temporary style for position and size
const tempStyle = tempNoteStyles[noteId];