diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-03-20 12:34:24 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:51:55 +0300 |
commit | 1f643e234e6b6ab12a3a09915071132a5f3deda4 (patch) | |
tree | 2012a45ab4f76396819a105504bb8019973d659e /iphone | |
parent | d12492ad47177fc79e5650979ef417a9241cafb3 (diff) |
[iOS]Double touch fix.
After double touch, single tap doesn't fire anymore
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/MapViewController.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index bd33d0ac4c..9b10a8600a 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -583,7 +583,12 @@ NSInteger compareAddress(id l, id r, void * context) } if (touchesCount == 2 && tapCount == 1 && m_isSticking) + { f.Scale(0.5); + if (!m_touchDownPoint.EqualDxDy(m_Pt1, 9)) + [NSObject cancelPreviousPerformRequestsWithTarget:self]; + m_isSticking = NO; + } } - (void) touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event |