double-tap-to-zoom should only work for single touch.

This commit is contained in:
rachytski 2011-03-08 22:48:29 +02:00 committed by Alex Zolotarev
parent 7e9f6f11b5
commit 010b3038ab

View file

@ -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));
}