<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>148086</bug_id>
          
          <creation_ts>2015-08-17 13:02:20 -0700</creation_ts>
          <short_desc>Cannot change WKWebView scrollView deceleration rate</short_desc>
          <delta_ts>2016-08-02 13:56:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenson Hsieh">wenson_hsieh</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rob</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1118198</commentid>
    <comment_count>0</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-17 13:02:20 -0700</bug_when>
    <thetext>Currently, developers are not able to change a WKScrollView&apos;s decelerationRate by explicitly setting it, e.g. webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal; This fixes the deceleration rate to UIScrollViewDecelerationRateFast. This is because _preferredScrollDecelerationFactor in WKScrollView is not updated when [WKScrollView setDecelerationRate] is invoked, so when the snap points code determines whether the decelerationRate should be fast or whatever the preferred value is, the decelerationRate is always set to UIScrollViewDecelerationRateFast.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118200</commentid>
    <comment_count>1</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-17 13:05:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/21893685&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118202</commentid>
    <comment_count>2</comment_count>
      <attachid>259173</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-17 13:12:24 -0700</bug_when>
    <thetext>Created attachment 259173
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118217</commentid>
    <comment_count>3</comment_count>
      <attachid>259173</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-08-17 13:27:06 -0700</bug_when>
    <thetext>Comment on attachment 259173
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=259173&amp;action=review

&gt; Source/WebKit2/ChangeLog:5
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=148086
&gt; +

There should be a radar url here too.

&gt; Source/WebKit2/ChangeLog:8
&gt; +        Updates the preferred scroll deceleration factor when the scrollView&apos;s decelerationRate is explicitly set.

Can you put more words here to say why this fixes the bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118224</commentid>
    <comment_count>4</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-17 13:39:10 -0700</bug_when>
    <thetext>Committed r188541: &lt;http://trac.webkit.org/changeset/188541&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216589</commentid>
    <comment_count>5</comment_count>
    <who name="rob">rob</who>
    <bug_when>2016-08-02 13:42:07 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Committed r188541: &lt;http://trac.webkit.org/changeset/188541&gt;

@Wenson: Can you specify what version of iOS this bug fix was released with? Still seems to be an issue in iOS 9.3 13E230.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216595</commentid>
    <comment_count>6</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2016-08-02 13:56:29 -0700</bug_when>
    <thetext>Hi Rob,

As far as I know, this fix did not make it into iOS 9. Could you try it out on the iOS 10 beta?

Thanks!
Wenson</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>259173</attachid>
            <date>2015-08-17 13:12:24 -0700</date>
            <delta_ts>2015-08-17 13:27:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-148086-20150817131223.patch</filename>
            <type>text/plain</type>
            <size>1589</size>
            <attacher name="Wenson Hsieh">wenson_hsieh</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg4NTEyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggYjEzZjkyNWI4ODAyNTEy
NDAxNzQ5N2ZhNjQxMjExYWYzMGJkMTUwYi4uNmI4NWU4Y2JiZjU4NzljOWE3ODA4MDYyN2UzMjMx
YWY2NzNhYzQzMyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDE1LTA4LTE3ICBXZW5z
b24gSHNpZWggIDx3ZW5zb25faHNpZWhAYXBwbGUuY29tPgorCisgICAgICAgIENhbm5vdCBjaGFu
Z2UgV0tXZWJWaWV3IHNjcm9sbFZpZXcgZGVjZWxlcmF0aW9uIHJhdGUKKyAgICAgICAgaHR0cHM6
Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0ODA4NgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFVwZGF0ZXMgdGhlIH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VyYmFuZDooQ0dTaXplKWNvbnRlbnRTaQogICAgICAgICBb
c2VsZiBfcmVzdG9yZUNvbnRlbnRPZmZzZXRXaXRoUnViYmVyYmFuZEFtb3VudDpydWJiZXJiYW5k
QW1vdW50XTsKIH0KIAorLSAodm9pZClzZXREZWNlbGVyYXRpb25SYXRlOihDR0Zsb2F0KWRlY2Vs
ZXJhdGlvblJhdGUKK3sKKyAgICBbc3VwZXIgc2V0RGVjZWxlcmF0aW9uUmF0ZTpkZWNlbGVyYXRp
b25SYXRlXTsKKyAgICBfcHJlZmVycmVkU2Nyb2xsRGVjZWxlcmF0aW9uRmFjdG9yID0gZGVjZWxl
cmF0aW9uUmF0ZTsKK30KKwogQGVuZAogCiAjZW5kaWYgLy8gUExBVEZPUk0oSU9TKQo=
</data>
<flag name="review"
          id="284341"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>