From 0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c Mon Sep 17 00:00:00 2001 From: Don Pellegrino Date: Mon, 17 Aug 2009 23:38:54 +0000 Subject: Modified to use CTRL modifier for zoom selections as well. --- diff --git a/src/controller/callbacks/mouse.c b/src/controller/callbacks/mouse.c index f594c23..f901476 100644 --- a/src/controller/callbacks/mouse.c +++ b/src/controller/callbacks/mouse.c @@ -26,7 +26,9 @@ mouse (int button, int state, int x, int y) // Deactive a panning event if one was happening. S.pan.active = false; - if (S.selection.active && S.selection.purpose == ZOOM) + if (S.selection.active && + S.selection.purpose == ZOOM && + glutGetModifiers () == GLUT_ACTIVE_CTRL) { /* * NOOP if the mouse was not moved. -- cgit v0.8.3.1-22-g547a