1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00
This commit is contained in:
jules 2007-11-19 19:34:14 +00:00
parent eddcb77941
commit 69501da32d

View file

@ -699,7 +699,7 @@ void MidiKeyboardComponent::resetAnyKeysInUse()
void MidiKeyboardComponent::updateNoteUnderMouse (int x, int y)
{
const int newNote = xyToNote (x, y);
const int newNote = (mouseDragging || isMouseOver()) ? xyToNote (x, y) : -1;
if (noteUnderMouse != newNote)
{