X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooNoteElement.java;h=7ea74227d0be3a456226583adfa3fe9a8bed560f;hp=886a1111be40c3056cd2a8078e0c34b994612520;hb=6154ba318198471a2b94391df6aab6f2b6cd9b29;hpb=570c4561b55541309efb977d0930777b8d214336 diff --git a/MooNoteElement.java b/MooNoteElement.java index 886a111..7ea7422 100644 --- a/MooNoteElement.java +++ b/MooNoteElement.java @@ -175,6 +175,13 @@ public class MooNoteElement extends JPanel { */ class MAdapter extends MouseAdapter { + /** + * Selects the note if + */ + public void mouseEntered(MouseEvent e) { + if (mtv.isLeftMouseButtonPressed()) select(); + } + /** * If left mouse button is clicked, selects the note and plays it. */