summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/controller/callbacks/mouse.c4
1 files changed, 3 insertions, 1 deletions
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.

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.