diff options
author | stuartmorgan <stuartmorgan@chromium.org> | 2015-10-02 11:16:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-02 18:16:55 +0000 |
commit | 0792f679c5b3e9acbbf05650da294029a20f8aa7 (patch) | |
tree | b9bfd6576ae0311d6afa1426fc44770042c5b95f | |
parent | bd8968a8174699127efd7bfa71cd9ba8567d4f1f (diff) | |
download | chromium_src-0792f679c5b3e9acbbf05650da294029a20f8aa7.zip chromium_src-0792f679c5b3e9acbbf05650da294029a20f8aa7.tar.gz chromium_src-0792f679c5b3e9acbbf05650da294029a20f8aa7.tar.bz2 |
Set deceleration rate for WKWebView
Matches the current setting for UIWebView. Note that this won't have
any effect in older version of iOS since it was only recently fixed
by http://trac.webkit.org/changeset/188541
BUG=520995
Review URL: https://codereview.chromium.org/1386693002
Cr-Commit-Position: refs/heads/master@{#352081}
-rw-r--r-- | ios/web/web_state/web_view_internal_creation_util.mm | 4 |
1 files changed, 4 insertions, 0 deletions
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 c25283a..3fdb1b1 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; } |