mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
01e8984d7d
commit
96fb31bc01
1 changed files with 2 additions and 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:
|
||||
|
|
Loading…
Reference in a new issue