fix position of if(waves_selected(event, key, state, button)) in callback ButtonRelease

This commit is contained in:
stefan schippers 2024-03-03 02:24:38 +01:00
parent 5e6ab50836
commit c07871d4ee
1 changed files with 5 additions and 4 deletions

View File

@ -3280,6 +3280,11 @@ int rstate; /* (reduced state, without ShiftMask) */
break;
case ButtonRelease:
if(waves_selected(event, key, state, button)) {
waves_callback(event, mx, my, key, button, aux, state);
break;
}
/* if a polygon/bezier control point was clicked, end point move operation
* and set polygon state back to SELECTED from SELECTED1 */
if(xctx->drag_elements) {
@ -3301,10 +3306,6 @@ int rstate; /* (reduced state, without ShiftMask) */
}
}
if(waves_selected(event, key, state, button)) {
waves_callback(event, mx, my, key, button, aux, state);
break;
}
if(xctx->ui_state & STARTPAN) {
xctx->ui_state &=~STARTPAN;
/* xctx->mx_save = mx; xctx->my_save = my; */