<?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>234433</bug_id>
          
          <creation_ts>2021-12-17 06:41:34 -0800</creation_ts>
          <short_desc>[WPE] Kinetic scrolling doesn&apos;t work in overflow scrolling</short_desc>
          <delta_ts>2022-09-02 07:47:16 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>johnfactotum1</reporter>
          <assigned_to name="Pablo Saavedra">psaavedra</assigned_to>
          <cc>alex</cc>
    
    <cc>alicem</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>clord</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>psaavedra</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1825068</commentid>
    <comment_count>0</comment_count>
    <who name="">johnfactotum1</who>
    <bug_when>2021-12-17 06:41:34 -0800</bug_when>
    <thetext>WebKitGTK only does kinetic scrolling when scrolling the whole document, but not when scrolling other elements with `overflow: scroll`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1825560</commentid>
    <comment_count>1</comment_count>
    <who name="">johnfactotum1</who>
    <bug_when>2021-12-20 02:53:07 -0800</bug_when>
    <thetext>Another difference I noticed between page scrolling and overflow scrolling: when using arrow keys and PgUp/PgDn to scroll, page scrolling is animated (like `scroll-behavior: smooth`), but with overflow scrolling, it scrolls instantly without any animation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1855605</commentid>
    <comment_count>2</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-03-28 07:37:11 -0700</bug_when>
    <thetext>

https://people.igalia.com/psaavedra/scroll_horizontal.html
https://people.igalia.com/psaavedra/scroll.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1855607</commentid>
    <comment_count>3</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-03-28 07:38:56 -0700</bug_when>
    <thetext>I can confirm this defect is also happens in WebKit WPE.Tested in:

* https://people.igalia.com/psaavedra/scroll_horizontal.html
* https://people.igalia.com/psaavedra/scroll.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1855742</commentid>
    <comment_count>4</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2022-03-28 13:09:21 -0700</bug_when>
    <thetext>I can see kinetic scrolling with your samples with WebKitGTK at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856984</commentid>
    <comment_count>5</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-03-31 14:30:54 -0700</bug_when>
    <thetext>(In reply to Alexander Mikhaylenko from comment #4)
&gt; I can see kinetic scrolling with your samples with WebKitGTK at least.
  
Not the case of WPE. Not at least using a build from trunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857152</commentid>
    <comment_count>6</comment_count>
    <who name="">johnfactotum1</who>
    <bug_when>2022-03-31 21:55:17 -0700</bug_when>
    <thetext>Tested on Arch Linux, with webkit2gtk-4.1 and webkit2gtk-5.0 2.36.0.

Kinetic scrolling seems to be working with GTK 4. But overflow scrolling with PgUp/PgDn still has no animation.

On GTK 3, overflow scrolling is neither kinetic nor animated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857228</commentid>
    <comment_count>7</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2022-04-01 04:35:48 -0700</bug_when>
    <thetext>Huh. Didn&apos;t think it would depend on GTK3/4.

I see they are using different codepaths when creating a NativeWebWheelEvent though, I guess it has to do with that then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1893678</commentid>
    <comment_count>8</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-08-25 04:42:38 -0700</bug_when>
    <thetext>Update: Works on Ubuntu for WebkitGTK (libwebkit2gtk-4.0-37:amd64                       2.36.6-0ubuntu0.22.04.1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1893689</commentid>
    <comment_count>9</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-08-25 07:18:16 -0700</bug_when>
    <thetext>Update:

*  Works on Ubuntu for WebkitGTK (libwebkit2gtk-4.0-37:amd64                       2.36.6-0ubuntu0.22.04.1)
* But not kinetic at all in overflow elements for (libwpewebkit-1.0-3:amd64 2.36.0-2ubuntu3)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894511</commentid>
    <comment_count>10</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-08-29 06:51:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3770</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895781</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-02 07:47:14 -0700</bug_when>
    <thetext>Committed 254099@main (431d9f7c6bc7): &lt;https://commits.webkit.org/254099@main&gt;

Reviewed commits have been landed. Closing PR #3770 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>