Allow selection of first note in pianoroll, as long as the mouse isn't too fast

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@978 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-17 15:35:21 +00:00
parent 69555e9afa
commit fc63352e55
2 changed files with 6 additions and 1 deletions

View File

@@ -22,6 +22,11 @@
* src/gui/widgets/automatable_button.cpp:
Noted bug in automatable button
* src/gui/piano_roll.cpp:
Fix bug when trying to select note on first beat. However, still breaks if
the cursor moves quickly from right to left (i.e: if it skips the
pixel position)
2008-05-14 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* include/project_renderer.h:

View File

@@ -1174,7 +1174,7 @@ void pianoRoll::mouseMoveEvent( QMouseEvent * _me )
midiTime() );
}
}
if( _me->x() <= WHITE_KEY_WIDTH )
if( _me->x() < WHITE_KEY_WIDTH )
{
update();
return;