<?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>162499</bug_id>
          
          <creation_ts>2016-09-23 11:01:07 -0700</creation_ts>
          <short_desc>Provide a way to set the same scroll inertia for &quot;-webkit-overflow-scrolling: touch&quot;</short_desc>
          <delta_ts>2017-04-25 09:45: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>CSS</component>
          <version>Safari 10</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 10</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="Dima Voytenko">dvoytenko</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dbates</cc>
    
    <cc>fred.wang</cc>
    
    <cc>jonlee</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1232910</commentid>
    <comment_count>0</comment_count>
    <who name="Dima Voytenko">dvoytenko</who>
    <bug_when>2016-09-23 11:01:07 -0700</bug_when>
    <thetext>To make an element scrollable in CSS, currently the following has to be done:

```
.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
```

The WebKit-only `-webkit-overflow-scrolling: touch` adds momentum scrolling. However, the scroll inertia is drastically different from the native scroll on `&lt;html&gt;` element. Since it&apos;s a WebKit-specific issue, could you please add another CSS property to use the native-like inertia for bigger scrollable elements?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1244285</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-10-25 11:01:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/28940255&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1298155</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-04-17 20:34:49 -0700</bug_when>
    <thetext>Resolved via https://trac.webkit.org/changeset/211197/webkit, which makes WKWebView have the same scroll deceleration as -webkit-overflow-scrolling: touch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1300511</commentid>
    <comment_count>3</comment_count>
      <attachid>307979</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2017-04-24 08:57:11 -0700</bug_when>
    <thetext>Created attachment 307979
Testcase: Scroll inertia of the viewport</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1300512</commentid>
    <comment_count>4</comment_count>
      <attachid>307980</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2017-04-24 08:57:38 -0700</bug_when>
    <thetext>Created attachment 307980
Testcase: Scroll inertia of an element</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1301072</commentid>
    <comment_count>5</comment_count>
    <who name="Dima Voytenko">dvoytenko</who>
    <bug_when>2017-04-25 09:45:29 -0700</bug_when>
    <thetext>Thanks a lot for fixing this! One thing I wanted to confirm. From the fix description it sounds like the scroll inertia in the WKWebView will now be the same as for an element with `-webkit-overflow-scrolling: touch`, right? Does this mean that Safari will eventually have the same scroll inertia as well?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>307979</attachid>
            <date>2017-04-24 08:57:11 -0700</date>
            <delta_ts>2017-04-24 08:57:11 -0700</delta_ts>
            <desc>Testcase: Scroll inertia of the viewport</desc>
            <filename>162499-1.html</filename>
            <type>text/html</type>
            <size>348</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxoZWFkPgogIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICA8dGl0bGU+
U2Nyb2xsIGluZXJ0aWEgKHZpZXdwb3J0KTwvdGl0bGU+CiAgPG1ldGEgbmFtZT0idmlld3BvcnQi
IGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCI+CiAgPHN0eWxlPgogICAgYm9keSB7CiAgICAg
IG1hcmdpbjogMDsKICAgICAgYmFja2dyb3VuZDogZ3JlZW47CiAgICB9CiAgPC9zdHlsZT4KPC9o
ZWFkPgo8Ym9keT4KICA8ZGl2IHN0eWxlPSJ3aWR0aDogMTAwcHg7IGhlaWdodDogNTAwMHB4OyBi
YWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQoMTM1ZGVnLCByZWQsIGJsdWUpOyI+PC9kaXY+Cjwv
Ym9keT4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>307980</attachid>
            <date>2017-04-24 08:57:38 -0700</date>
            <delta_ts>2017-04-24 08:57:38 -0700</delta_ts>
            <desc>Testcase: Scroll inertia of an element</desc>
            <filename>162499-2.html</filename>
            <type>text/html</type>
            <size>542</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxoZWFkPgogIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICA8dGl0bGU+
U2Nyb2xsIGluZXJ0aWEgKGVsZW1lbnQpPC90aXRsZT4KICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0
IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgiPgogICAgPHN0eWxlPgogICAgICBib2R5IHsK
ICAgICAgICBtYXJnaW46IDA7CiAgICAgIH0KICAgICAgLnNjcm9sbGFibGUgewogICAgICAgIGJh
Y2tncm91bmQ6IGdyZWVuOwogICAgICAgIHdpZHRoOiA3NSU7CiAgICAgICAgaGVpZ2h0OiA0MDBw
eDsKCiAgICAgICAgb3ZlcmZsb3cteTogc2Nyb2xsOwogICAgICAgIC13ZWJraXQtb3ZlcmZsb3ct
c2Nyb2xsaW5nOiB0b3VjaDsKICAgICAgfQogICAgPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KICA8
ZGl2IGNsYXNzPSJzY3JvbGxhYmxlIj4KICAgIDxkaXYgc3R5bGU9IndpZHRoOiAxMDBweDsgaGVp
Z2h0OiA1MDAwcHg7IGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCgxMzVkZWcsIHJlZCwgYmx1
ZSk7Ij48L2Rpdj4KICA8L2Rpdj4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>