Erase only when clicking in note
@@ -533,6 +533,8 @@ export const SongPianoRoll = ({
}
// setMoveNoteFrom(undefined);
} else if (e.button === 2 || (tool === "eraser" && e.button === 0)) {
+ // If there's a note in position
+ if (cell && cell.note === note) {
dispatch(
trackerDocumentActions.editPatternCell({
patternId: patternId,
@@ -546,6 +548,7 @@ export const SongPianoRoll = ({
const newSelectedCells = [...selectedPatternCells];
newSelectedCells.splice(col, 1);
dispatch(trackerActions.setSelectedPatternCells(newSelectedCells));
+ }
} else if (tool === "selection" && e.button === 0) {
// If there's a note in position
if (cell && cell.note === note) {
