Browse Source

Made MidiKeyboardComponent work better when attached as a mouse listener to child components.

tags/2021-05-28
jules 11 years ago
parent
commit
179d99f57d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.cpp

+ 1
- 1
modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.cpp View File

@@ -680,7 +680,7 @@ void MidiKeyboardComponent::resetAnyKeysInUse()
void MidiKeyboardComponent::updateNoteUnderMouse (const MouseEvent& e, bool isDown)
{
updateNoteUnderMouse (e.getPosition(), isDown, e.source.getIndex());
updateNoteUnderMouse (e.getEventRelativeTo (this).getPosition(), isDown, e.source.getIndex());
}
void MidiKeyboardComponent::updateNoteUnderMouse (Point<int> pos, bool isDown, int fingerNum)


Loading…
Cancel
Save