You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/08/04 22:45:30 UTC

cordova-plugin-wkwebview-engine git commit: Add ability to set the deceleration rate for the scrollview to 'fast'

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 <sh...@apache.org>
Authored: Thu Aug 4 15:48:44 2016 -0700
Committer: Shazron Abdullah <sh...@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