From 010b3038abde609bc9de8935a46714ed6eb1ebb7 Mon Sep 17 00:00:00 2001 From: rachytski Date: Tue, 8 Mar 2011 22:48:29 +0200 Subject: [PATCH] double-tap-to-zoom should only work for single touch. --- iphone/Maps/Classes/MapViewController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index e31bb499e7..d399413eac 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -228,7 +228,7 @@ NSInteger compareAddress(UITouch * l, UITouch * r, void * context) [self updatePointsFromEvent:event]; [self stopCurrentAction]; - if (((UITouch*)[touches anyObject]).tapCount == 2) + if ((((UITouch*)[touches anyObject]).tapCount == 2) && ([[event allTouches] count] < 2)) m_framework->ScaleToPoint(ScaleToPointEvent(m_Pt1.x, m_Pt1.y, 2)); } @@ -237,7 +237,7 @@ NSInteger compareAddress(UITouch * l, UITouch * r, void * context) [self updatePointsFromEvent:event]; [self stopCurrentAction]; - if (((UITouch*)[touches anyObject]).tapCount == 2) + if ((((UITouch*)[touches anyObject]).tapCount == 2) && ([[event allTouches] count] < 2)) m_framework->ScaleToPoint(ScaleToPointEvent(m_Pt1.x, m_Pt1.y, 2)); }