Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
Don't support creating notes backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrajca committed Jun 8, 2012
1 parent 1d6c9e5 commit 483c5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/MRPianoRollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ - (void)mouseDragged:(NSEvent *)theEvent {
CGFloat x = [self convertPoint:[theEvent locationInWindow] fromView:nil].x;

_drawingNotePlaceholder = YES;
_notePlaceholderRect.size.width = x - NSMinX(_notePlaceholderRect);
_notePlaceholderRect.size.width = MAX(x - NSMinX(_notePlaceholderRect), 5);

[self setNeedsDisplay:YES];
}
Expand Down

0 comments on commit 483c5ea

Please sign in to comment.