refactoring and cleanup of wave_callback() -2-

This commit is contained in:
stefan schippers 2025-01-08 21:12:59 +01:00
parent bbdfd3c61a
commit d1e2328eb3
1 changed files with 1 additions and 4 deletions

View File

@ -729,10 +729,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
}
/* save mouse position when doing pan operations */
else if(
(
(event == ButtonPress && (button == Button1 || button == Button3)) ||
(event == MotionNotify && (state & (Button1Mask | Button3Mask)))
) &&
( event == ButtonPress && (button == Button1 || button == Button3)) &&
!(xctx->ui_state & GRAPHPAN) &&
!xctx->graph_top /* && !xctx->graph_bottom */
) {