From 29744cfa5afd1de981513f70bf1c31dec84f35be Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Thu, 6 Feb 2014 16:27:54 -0500 Subject: [PATCH] refs #34: don't decelerate pan for low velocity --- ios/MBXViewController.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index 330855a39..a35ae5f5a 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -150,6 +150,9 @@ class MBXMapView } else if (pan.state == UIGestureRecognizerStateEnded) { + if ([pan velocityInView:pan.view].x < 50 && [pan velocityInView:pan.view].y < 50) + return; + CGPoint finalCenter = CGPointMake(self.center.x + (0.1 * [pan velocityInView:pan.view].x), self.center.y + (0.1 * [pan velocityInView:pan.view].y));