1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

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

This commit is contained in:
jules 2015-04-22 15:36:52 +01:00
parent 9bb0be09a6
commit 179d99f57d

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)