Allow individual velocity/pan changes with alt (#3923)

Fix regression caused by 6e3d4f4, allow ALT to change the velocity of multiple selected notes.
This commit is contained in:
gandalf3
2017-12-22 12:29:08 -08:00
committed by Tres Finocchiaro
parent 7de9649b2f
commit 2c3df226ee

View File

@@ -2121,9 +2121,14 @@ void PianoRoll::mouseMoveEvent( QMouseEvent * me )
bool isUnderPosition = n->withinRange( ticks_start, ticks_end );
// Play note under the cursor
if ( isUnderPosition ) { testPlayNote( n ); }
// If note is the one under the cursor or is selected when alt is
// not pressed
if ( ( isUnderPosition && !isSelection() ) || ( n->selected() && !altPressed ) )
// If note is:
// Under the cursor, when there is no selection
// Selected, and alt is not pressed
// Under the cursor, selected, and alt is pressed
if ( ( isUnderPosition && !isSelection() ) ||
( n->selected() && !altPressed ) ||
( isUnderPosition && n->selected() && altPressed )
)
{
if( m_noteEditMode == NoteEditVolume )
{