<?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>232738</bug_id>
          
          <creation_ts>2021-11-04 17:26:11 -0700</creation_ts>
          <short_desc>A sideways rubber band can break a vertical scroll snap animation</short_desc>
          <delta_ts>2022-02-12 22:21:43 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Scrolling</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1812026</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-11-04 17:26:11 -0700</bug_when>
    <thetext>In a vertically document with snap points, if your vertical scroll gesture has some horizontal component, we can start a rubberband animation in X which kills the scroll snap momentum animation:

ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ScrollingEffectsController::applyScrollDeltaWithStretching() - stretchScrollForce width=4 height=0 move delta width=0 height=0 dampedDelta width=1 height=0
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ScrollingEffectsController::applyScrollDeltaWithStretching() - stretchScrollForce width=4 height=0 move delta width=0 height=0 dampedDelta width=1 height=0
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ScrollingEffectsController::applyScrollDeltaWithStretching() - stretchScrollForce width=5 height=0 move delta width=1 height=0 dampedDelta width=1 height=0
ScrollingEffectsController::applyScrollDeltaWithStretching() - stretchScrollForce width=6 height=0 move delta width=1 height=0 dampedDelta width=1 height=0
ScrollingEffectsController 0x31062c180 updateRubberBandingState - isRubberBanding 0
ScrollingEffectsController 0x31062c180 startMomentumScrollWithInitialVelocity width=0 height=0 from (1,319)
ScrollingEffectsController 0x31062c180 scrollAnimationWillStart ScrollAnimation 0x3106124b0 momentum active 1 current offset (0,0)
ScrollingEffectsController::startRubberBandAnimationIfNecessary() - rubberBandAnimationRunning 0 stretchAmount width=1 height=0 targetOffset (1,319)
ScrollingEffectsController 0x31062c180 scrollAnimationDidEnd ScrollAnimation 0x3106124b0 momentum active 0 current offset (0,0)
ScrollingEffectsController 0x31062c180 stopAnimatedScroll
ScrollingEffectsController::startRubberBandAnimation() - starting rubbberband with targetOffset (0,319) initialVelocity width=0 height=0 initialOverscroll width=1 height=0
ScrollingEffectsController 0x31062c180 scrollAnimationWillStart ScrollAnimation 0x31f8bf240 rubber-band active 1 current offset (0,0)
ScrollingEffectsController 0x31062c180 updateRubberBandingState - isRubberBanding 1
ScrollingEffectsController 0x31062c180 scrollAnimationDidUpdate ScrollAnimation 0x31f8bf240 rubber-band active 1 current offset (1,319) (main thread 0) scrolling to (1,319)
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ScrollingEffectsController 0x31062c180 scrollAnimationDidUpdate ScrollAnimation 0x31f8bf240 rubber-band active 1 current offset (1,319) (main thread 0) scrolling to (1,319)
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ScrollingEffectsController 0x31062c180 scrollAnimationDidUpdate ScrollAnimation 0x31f8bf240 rubber-band active 1 current offset (1,319) (main thread 0) scrolling to (1,319)
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ScrollingEffectsController 0x31062c180 scrollAnimationDidUpdate ScrollAnimation 0x31f8bf240 rubber-band active 1 current offset (0,319) (main thread 0) scrolling to (0,319)
ScrollingEffectsController 0x31062c180 updateRubberBandingState - isRubberBanding 0
ScrollingEffectsController 0x31062c180 scrollAnimationDidEnd ScrollAnimation 0x31f8bf240 rubber-band active 0 current offset (0,319)
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 1
ThreadedScrollingTree::willStartRenderingUpdate - scrollingThreadIsActive 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1812030</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-04 17:46:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/85041566&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1812036</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-11-04 17:57:56 -0700</bug_when>
    <thetext>This will be a regression from the scroll animation refactoring.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813169</commentid>
    <comment_count>3</comment_count>
      <attachid>443694</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-11-09 08:56:34 -0800</bug_when>
    <thetext>Created attachment 443694
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840946</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-02-12 22:21:43 -0800</bug_when>
    <thetext>QA is unable to reproduce this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>443694</attachid>
            <date>2021-11-09 08:56:34 -0800</date>
            <delta_ts>2021-11-09 08:56:34 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>main-frame-snap.html</filename>
            <type>text/html</type>
            <size>614</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">CjwhRE9DVFlQRSBodG1sPgoKPGh0bWw+CjxoZWFkPgogICAgPHN0eWxlPgogICAgICAgIDpyb290
IHsKICAgICAgICAgICAgc2Nyb2xsLXNuYXAtdHlwZTogYmxvY2sgbWFuZGF0b3J5OwogICAgICAg
IH0KICAgICAgICBib2R5IHsKICAgICAgICAgICAgbWFyZ2luOiAyMHB4OwogICAgICAgIH0KCiAg
ICAgICAgZGl2IHsKICAgICAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgICAgIGhlaWdodDog
NDAwcHg7CiAgICAgICAgICAgIHNjcm9sbC1zbmFwLWFsaWduOiBzdGFydDsKICAgICAgICB9CiAg
ICA8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogICAgPGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xv
cjogcmVkJz48L2Rpdj4KICAgIDxkaXYgc3R5bGU9J2JhY2tncm91bmQtY29sb3I6IGdyZWVuJz48
L2Rpdj4KICAgIDxkaXYgc3R5bGU9J2JhY2tncm91bmQtY29sb3I6IGJsdWUnPjwvZGl2PgogICAg
PGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogYXF1YSc+PC9kaXY+CiAgICA8ZGl2IHN0eWxl
PSdiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3cnPjwvZGl2PgogICAgPGRpdiBzdHlsZT0nYmFja2dy
b3VuZC1jb2xvcjogZnVjaHNpYSc+PC9kaXY+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>