mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
improve button up/down tracking during velocity draw drag
This commit is contained in:
parent
6d4bbae48c
commit
6ea7e8c8f4
1 changed files with 3 additions and 1 deletions
|
|
@ -83,12 +83,14 @@ VelocityGhostRegion::base_event (GdkEvent* ev)
|
||||||
if (ev->button.button == 1) {
|
if (ev->button.button == 1) {
|
||||||
desensitize_lollis ();
|
desensitize_lollis ();
|
||||||
dragging = true;
|
dragging = true;
|
||||||
|
base_rect->grab();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GDK_BUTTON_RELEASE:
|
case GDK_BUTTON_RELEASE:
|
||||||
if (ev->button.button == 1) {
|
if (ev->button.button == 1) {
|
||||||
sensitize_lollis ();
|
base_rect->ungrab();
|
||||||
dragging = false;
|
dragging = false;
|
||||||
|
sensitize_lollis ();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue