mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 11:49:33 +01:00
in pianorolls, allow note-clicks to select in draw mode, just like the editor
This commit is contained in:
parent
6eeed82fb3
commit
e6bb61b86d
1 changed files with 8 additions and 10 deletions
|
|
@ -856,16 +856,14 @@ Pianoroll::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, It
|
|||
Editing::MouseMode mouse_mode = current_mouse_mode();
|
||||
switch (item_type) {
|
||||
case NoteItem:
|
||||
if (mouse_mode == Editing::MouseContent) {
|
||||
/* Existing note: allow trimming/motion */
|
||||
if ((note = reinterpret_cast<NoteBase*> (item->get_data ("notebase")))) {
|
||||
if (note->big_enough_to_trim() && note->mouse_near_ends()) {
|
||||
_drags->set (new NoteResizeDrag (*this, item), event, get_canvas_cursor());
|
||||
} else {
|
||||
NoteDrag* nd = new NoteDrag (*this, item);
|
||||
nd->set_bounding_item (data_group);
|
||||
_drags->set (nd, event);
|
||||
}
|
||||
/* Existing note: allow trimming/motion */
|
||||
if ((note = reinterpret_cast<NoteBase*> (item->get_data ("notebase")))) {
|
||||
if (note->big_enough_to_trim() && note->mouse_near_ends()) {
|
||||
_drags->set (new NoteResizeDrag (*this, item), event, get_canvas_cursor());
|
||||
} else {
|
||||
NoteDrag* nd = new NoteDrag (*this, item);
|
||||
nd->set_bounding_item (data_group);
|
||||
_drags->set (nd, event);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue