]> ruin.nu Git - moosique.git/blobdiff - MooNoteElement.java
Fixed drag select in track view.
[moosique.git] / MooNoteElement.java
index 886a1111be40c3056cd2a8078e0c34b994612520..7ea74227d0be3a456226583adfa3fe9a8bed560f 100644 (file)
@@ -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.
                 */