Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Unified Diff: ios/web/web_state/web_view_internal_creation_util.mm

Issue 1386693002: Set deceleration rate for WKWebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental change Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_view_internal_creation_util.mm
diff --git a/ios/web/web_state/web_view_internal_creation_util.mm b/ios/web/web_state/web_view_internal_creation_util.mm
index c25283aa57d0c4502226042208e68de2952b6e75..3fdb1b15fb62091bf986d74fad6759c1cac3e294 100644
--- a/ios/web/web_state/web_view_internal_creation_util.mm
+++ b/ios/web/web_state/web_view_internal_creation_util.mm
@@ -187,6 +187,10 @@ WKWebView* CreateWKWebView(CGRect frame,
#endif
PostWKWebViewCreation(result, browser_state);
+ // By default the web view uses a very sluggish scroll speed. Set it to a more
+ // reasonable value.
+ result.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
+
return result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698