<?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>224182</bug_id>
          
          <creation_ts>2021-04-05 06:08:26 -0700</creation_ts>
          <short_desc>[GTK] REGRESSION: Kinetic scrolling on touchpad doesn&apos;t work with async scrolling off</short_desc>
          <delta_ts>2021-05-15 13:36:25 -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>Unspecified</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alice Mikhaylenko">alicem</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clord</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1746935</commentid>
    <comment_count>0</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2021-04-05 06:08:26 -0700</bug_when>
    <thetext>This is very specific; it works with touch or with async scrolling. See the patch, but I&apos;m very much not sure that&apos;s correct as it&apos;s a later regression, from the 2.32.0 cycle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746936</commentid>
    <comment_count>1</comment_count>
      <attachid>425147</attachid>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2021-04-05 06:10:23 -0700</bug_when>
    <thetext>Created attachment 425147
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746943</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Lord">clord</who>
    <bug_when>2021-04-05 08:08:02 -0700</bug_when>
    <thetext>Drive-by comments;

It does seem odd that we would stop the animation but not clear the scroll history - I&apos;m reasonably sure this worked as expected when I originally checked in momentum scrolling, I&apos;d be concerned that this might cause some unexpected behaviour (though obviously there currently is unexpected behaviour, so that&apos;s a bit of a moot point).

If all of these things work with async and non-async scrolling, with GTK and WPE, I think this should be fine:
- Touchscreen or touchpad scrolling without triggering a kinetic scroll animation
- Touchscreen or touchpad scrolling and triggering a kinetic scroll animation
- Increasing the velocity of a kinetic scroll animation with touchscreen or touchpad scrolling (momentum scrolling)
- Stopping a kinetic scroll animation with touchscreen or touchpad scrolling
- Smooth scrolling with a mouse-wheel and keyboard
- Mouse-wheel or keyboard scrolling interrupting animated scrolling

It&apos;s a lot to test... We briefly chatted on IRC, to reiterate what we discussed there, I think it&apos;d be good to get API tests written for both the animation classes and the event-handling so that we can establish expected sequences and behaviours.

Given this is currently completely untested, I don&apos;t think that should hold up this particular patch, but it&apos;d establish a good precedent to at least add a test that would catch this particular failure (unexpected clearing of scroll history when calling scroll-to api).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1747303</commentid>
    <comment_count>3</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2021-04-06 00:09:36 -0700</bug_when>
    <thetext>Well, this function is called every time you scroll, resulting in the scroll history always being empty when you trigger kinetic scrolling. Maybe what changed between when you were reworking kinetic scrolling and now is it was only used in some special cases that do warrant clearing the history, and is more widely used now.

Thanks for the list, I was gonna type that there is indeed a regression after going through the list:

- Mouse-wheel or keyboard scrolling interrupting animated scrolling

But seems it&apos;s in trunk as well. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760404</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-05-15 07:12:54 -0700</bug_when>
    <thetext>(In reply to Alexander Mikhaylenko from comment #3)
&gt; - Mouse-wheel or keyboard scrolling interrupting animated scrolling

Can you report a separate bug for this please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760405</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-05-15 07:26:50 -0700</bug_when>
    <thetext>Committed r277539 (237767@main): &lt;https://commits.webkit.org/237767@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425147.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760457</commentid>
    <comment_count>6</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2021-05-15 13:36:25 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #4)
&gt; Can you report a separate bug for this please?

https://bugs.webkit.org/show_bug.cgi?id=225844</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>425147</attachid>
            <date>2021-04-05 06:10:23 -0700</date>
            <delta_ts>2021-05-15 07:26:51 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>224182.patch</filename>
            <type>text/plain</type>
            <size>1860</size>
            <attacher name="Alice Mikhaylenko">alicem</attacher>
            
              <data encoding="base64">RnJvbSBiMTM1MDgzY2U3ZTk4OTRjMzIwZDc4YzI1M2VmNWQ2YzFiMDVlZjdlIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4YW5kZXIgTWlraGF5bGVua28gPGFsZXhtQGdub21lLm9y
Zz4KRGF0ZTogTW9uLCA1IEFwciAyMDIxIDE4OjA5OjQxICswNTAwClN1YmplY3Q6IFtQQVRDSF0g
YQoKLS0tCiBTb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgfCAxMyArKysrKysrKysrKysrCiAuLi4vcGxhdGZvcm0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