]> err.no Git - mapper/commitdiff
More fixes to click-pan, zoom in if clicked/tapped in the middle of the map
authorKaj-Michael Lang <milang@tal.org>
Tue, 15 Apr 2008 10:22:58 +0000 (13:22 +0300)
committerKaj-Michael Lang <milang@tal.org>
Tue, 15 Apr 2008 10:22:58 +0000 (13:22 +0300)
src/map.c

index a1ceeb8f4de3badc3e92e8377edcabf52bd9d3dd..7bfdc970e874f2bf74eee553651c3a17ed72ac5e 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -1470,7 +1470,7 @@ case 1:
        return FALSE;
 break;
 case 2:
-       map_set_zoom(_zoom - 1);
+       /* */
 break;
 case 3:
 #ifndef WITH_HILDON
@@ -1482,7 +1482,7 @@ break;
 return FALSE;
 }
 
-static void
+static gboolean
 map_pan_click_check(gint x, gint y)
 {
 gint pns=0, pew=0;
@@ -1554,7 +1554,8 @@ case 1:
        }
 break;
 case 2:
-       map_pan_click_check(event->x, event->y);
+       if (map_pan_click_check(event->x, event->y)==FALSE)
+               map_set_zoom(_zoom-1);
        return FALSE;
 break;
 case 3: