mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
some prep work for generally handling dbl-click on draggable objects
This commit is contained in:
parent
a079118981
commit
479e97dc59
3 changed files with 26 additions and 2 deletions
|
|
@ -1293,6 +1293,11 @@ Editor::button_press_handler_2 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||
bool
|
||||
Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
|
||||
{
|
||||
if (event->type == GDK_2BUTTON_PRESS) {
|
||||
_drags->mark_double_click ();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (event->type != GDK_BUTTON_PRESS) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue