]> err.no Git - mapper/commitdiff
Use different size margin areas for NE and WE movement
authorKaj-Michael Lang <milang@tal.org>
Fri, 11 Apr 2008 13:06:16 +0000 (16:06 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 11 Apr 2008 13:06:16 +0000 (16:06 +0300)
src/map.c

index fc505e05c6b1dc01c462e02fe43f38a09a49a1f3..eea3afcae060e6f0227223f229b9a91caccc83c2 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -65,7 +65,8 @@
 
 #define DEBUG_MAP_TIME 1
 
-#define MAP_THUMB_MARGIN (100)
+#define MAP_THUMB_MARGIN_X (100)
+#define MAP_THUMB_MARGIN_Y (75)
 
 /* Initial size */
 #define BUF_WIDTH_TILES (4)
@@ -1459,14 +1460,14 @@ if (hildon_helper_event_button_is_finger(event)) {
 if (event->button==2) {
 #endif
        gint pns=0, pew=0;
-       if (event->x<MAP_THUMB_MARGIN)
+       if (event->x<MAP_THUMB_MARGIN_X)
                pns=-PAN_UNITS;
-       else if (event->x>(_screen_width_pixels-MAP_THUMB_MARGIN))
+       else if (event->x>(_screen_width_pixels-MAP_THUMB_MARGIN_X))
                pns=PAN_UNITS;
 
-       if (event->y<MAP_THUMB_MARGIN)
+       if (event->y<MAP_THUMB_MARGIN_Y)
                pew=-PAN_UNITS;
-       else if (event->y>(_screen_height_pixels-MAP_THUMB_MARGIN))
+       else if (event->y>(_screen_height_pixels-MAP_THUMB_MARGIN_Y))
                pew=PAN_UNITS;
 
        if (pns!=0 || pew!=0) {