diff --git a/Sources/VLSheetView.mm b/Sources/VLSheetView.mm index 8be5b33..c87e1e9 100644 --- a/Sources/VLSheetView.mm +++ b/Sources/VLSheetView.mm @@ -838,21 +838,24 @@ const float kSemiFloor = -1.0f*kLineH; - (void) mouseDown:(NSEvent *)event { - fSelEnd = -1; switch ([self findRegionForEvent:event]) { case kRegionNote: + fSelEnd = -1; [self addNoteAtCursor]; break; case kRegionChord: + fSelEnd = -1; [self editChord]; break; case kRegionLyrics: + fSelEnd = -1; [self editLyrics]; break; case kRegionMeasure: [self editSelection:([event modifierFlags] & NSShiftKeyMask) != 0]; break; default: + fSelEnd = -1; break; } } diff --git a/Sources/VLSheetViewSelection.mm b/Sources/VLSheetViewSelection.mm index 0443e33..a12624e 100644 --- a/Sources/VLSheetViewSelection.mm +++ b/Sources/VLSheetViewSelection.mm @@ -111,7 +111,7 @@ VLSequenceCallback( - (void)editSelection:(BOOL)extend { - if (extend && fSelStart > -1) { + if (extend && fSelEnd > -1) { if (fCursorMeasure > fSelEnd) fSelEnd = fCursorMeasure; else if (fCursorMeasure < fSelStart)