summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-11 14:45:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-11 14:45:33 +0100
commit96fb31bc01284147a34ab70c3e649af1576e8505 (patch)
tree01e6892657c908e0c6bf8fa6208600fbb99d4bde
parent01e8984d7d3b6da1196766b3b411151a5a7a5053 (diff)
downloadsubsurface-96fb31bc01284147a34ab70c3e649af1576e8505.tar.gz
Zoom with left mouse button
Linus convinced me that I was wrong to modify his commit 24690ce35f81 "Initial not-so-pretty profile zoom support" and so this changes it back to use the left mouse button for zooming. It turns out that on some touchpads there's a very nice way to hold down the click with one finger and then pan with another finger, but that does not work if you do a two finger click (and use one of those or a third to pan). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--gtk-gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index ea335749c..2434a57fc 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1381,7 +1381,7 @@ static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer
gboolean clicked(GtkWidget *widget, GdkEventButton *event, gpointer user_data)
{
switch (event->button) {
- case 3:
+ case 1:
zoom_x = event->x;
zoom_y = event->y;
break;
@@ -1395,7 +1395,7 @@ gboolean clicked(GtkWidget *widget, GdkEventButton *event, gpointer user_data)
gboolean released(GtkWidget *widget, GdkEventButton *event, gpointer user_data)
{
switch (event->button) {
- case 3:
+ case 1:
zoom_x = zoom_y = -1;
break;
default: