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>
This commit is contained in:
Dirk Hohndel 2012-11-11 14:45:33 +01:00
parent 01e8984d7d
commit 96fb31bc01

View file

@ -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: