improve button up/down tracking during velocity draw drag

This commit is contained in:
Paul Davis 2023-06-22 17:38:55 -06:00
parent 6d4bbae48c
commit 6ea7e8c8f4

View File

@ -83,12 +83,14 @@ VelocityGhostRegion::base_event (GdkEvent* ev)
if (ev->button.button == 1) {
desensitize_lollis ();
dragging = true;
base_rect->grab();
}
break;
case GDK_BUTTON_RELEASE:
if (ev->button.button == 1) {
sensitize_lollis ();
base_rect->ungrab();
dragging = false;
sensitize_lollis ();
}
break;
default: