mirror of
https://github.com/StefanSchippers/xschem.git
synced 2026-08-22 06:07:29 +02:00
refactoring and cleanup of wave_callback() -2-
This commit is contained in:
+1
-4
@@ -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 */
|
/* save mouse position when doing pan operations */
|
||||||
else if(
|
else if(
|
||||||
(
|
( event == ButtonPress && (button == Button1 || button == Button3)) &&
|
||||||
(event == ButtonPress && (button == Button1 || button == Button3)) ||
|
|
||||||
(event == MotionNotify && (state & (Button1Mask | Button3Mask)))
|
|
||||||
) &&
|
|
||||||
!(xctx->ui_state & GRAPHPAN) &&
|
!(xctx->ui_state & GRAPHPAN) &&
|
||||||
!xctx->graph_top /* && !xctx->graph_bottom */
|
!xctx->graph_top /* && !xctx->graph_bottom */
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user