diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-11 14:45:33 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-11 14:45:33 +0100 |
commit | 96fb31bc01284147a34ab70c3e649af1576e8505 (patch) | |
tree | 01e6892657c908e0c6bf8fa6208600fbb99d4bde | |
parent | 01e8984d7d3b6da1196766b3b411151a5a7a5053 (diff) | |
download | subsurface-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |