From c02a167e9aa2d71d2041d3440812434529c687e4 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 15 Apr 2008 13:22:58 +0300 Subject: [PATCH] More fixes to click-pan, zoom in if clicked/tapped in the middle of the map --- src/map.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/map.c b/src/map.c index a1ceeb8..7bfdc97 100644 --- 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: -- 2.39.5