From 0aadbedecb24f4c01ea24fd75c9fb7d17b0b8216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Mon, 20 Apr 2015 11:15:29 -0700 Subject: [PATCH] Lower threshold for rotation drift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s pretty darn hard to get up to 5 rad/s with the same two fingers. --- platform/ios/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 78ad046d7..274e70208 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -841,7 +841,7 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr; { CGFloat velocity = rotate.velocity; - if (fabs(velocity) > 5) + if (fabs(velocity) > 3) { CGFloat radians = self.angle + rotate.rotation; CGFloat duration = UIScrollViewDecelerationRateNormal;