cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject cordova-plugin-wkwebview-engine git commit: Add ability to set the deceleration rate for the scrollview to 'fast'
Date Thu, 04 Aug 2016 22:45:30 GMT
Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master c0a10b72c -> dce192abd


Add ability to set the deceleration rate for the scrollview to 'fast'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/commit/dce192ab
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/dce192ab
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/dce192ab

Branch: refs/heads/master
Commit: dce192abdf24d631a37e1ace9fe5b72b44c74ecf
Parents: c0a10b7
Author: Shazron Abdullah <shazron@apache.org>
Authored: Thu Aug 4 15:48:44 2016 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Thu Aug 4 15:48:44 2016 -0700

----------------------------------------------------------------------
 src/ios/CDVWKWebViewEngine.m | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/dce192ab/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index 9224e31..bd1d8fb 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -208,6 +208,8 @@
 
     if (![@"fast" isEqualToString:decelerationSetting]) {
         [wkWebView.scrollView setDecelerationRate:UIScrollViewDecelerationRateNormal];
+    } else {
+        [wkWebView.scrollView setDecelerationRate:UIScrollViewDecelerationRateFast];
     }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message