<?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>142351</bug_id>
          
          <creation_ts>2015-03-05 11:34:50 -0800</creation_ts>
          <short_desc>[Mac] &apos;Gliding&apos; phase of scroll snap points is incorrect on desktop</short_desc>
          <delta_ts>2015-03-05 21:18:15 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</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="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1074600</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-05 11:34:50 -0800</bug_when>
    <thetext>When working with scroll snap points, I frequently encounter a problem where a momentum gesture does not smoothly animate to the expected snap point. Instead, the momentum animation follows its normal animation curve, ending somewhat short of the desired scroll point. At that point, the snap point animation picks up and slides the element to the correct snap point.

This is incorrect. The momentum gesture should be calculating its path based on the snap point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074601</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-03-05 11:35:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/20058023&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074641</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-05 12:45:18 -0800</bug_when>
    <thetext>The problem was caused by an incorrect command to start a new snapping animation timer when the end momentum phase event had been received. This caused WebKit to recalculate the animation curve for the remaining distance, resulting in the bad animation behavior.

Removing the start animation command when entering the momentum ended state causes the animation to play out properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074644</commentid>
    <comment_count>3</comment_count>
      <attachid>247983</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-05 12:47:34 -0800</bug_when>
    <thetext>Created attachment 247983
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074832</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-05 21:18:15 -0800</bug_when>
    <thetext>Committed r181137: &lt;http://trac.webkit.org/changeset/181137&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>247983</attachid>
            <date>2015-03-05 12:47:34 -0800</date>
            <delta_ts>2015-03-05 12:48:38 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-142351-20150305124714.patch</filename>
            <type>text/plain</type>
            <size>1820</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4MTA5NCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZU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VXaGVlbEV2ZW50ID0gZmFsc2U7CiAgICAgICAgIGJyZWFrOwo=
</data>
<flag name="review"
          id="272907"
          type_id="1"
          status="+"
          setter="dino"
    />
          </attachment>
      

    </bug>

</bugzilla>