<?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>186320</bug_id>
          
          <creation_ts>2018-06-05 13:40:03 -0700</creation_ts>
          <short_desc>attenuationFactor should be in range [0,1]</short_desc>
          <delta_ts>2018-06-06 09:36:20 -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>New Bugs</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Jones">jeremyj-wk</reporter>
          <assigned_to name="Jeremy Jones">jeremyj-wk</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1430204</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Jones">jeremyj-wk</who>
    <bug_when>2018-06-05 13:40:03 -0700</bug_when>
    <thetext>attenuationFactor should be in range [0,1]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430205</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Jones">jeremyj-wk</who>
    <bug_when>2018-06-05 13:40:48 -0700</bug_when>
    <thetext>rdar://problem/40821456</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430212</commentid>
    <comment_count>2</comment_count>
      <attachid>341992</attachid>
    <who name="Jeremy Jones">jeremyj-wk</who>
    <bug_when>2018-06-05 13:57:10 -0700</bug_when>
    <thetext>Created attachment 341992
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430226</commentid>
    <comment_count>3</comment_count>
      <attachid>341992</attachid>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2018-06-05 14:26:37 -0700</bug_when>
    <thetext>Comment on attachment 341992
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341992&amp;action=review

&gt; Source/WebKit/UIProcess/ios/fullscreen/FullscreenTouchSecheuristic.cpp:81
&gt; +    return std::max(std::min(normalizedTimeDelta * m_weight, 1.0), 0.0);

So the weight factor is incorrect when you pass some threshold, but with the clamping, how long must I wait in order for the old influence to be at 0, and basically we start from scratch? Before, the old influence would end up having a negative impact.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430456</commentid>
    <comment_count>4</comment_count>
      <attachid>341992</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2018-06-06 09:06:38 -0700</bug_when>
    <thetext>Comment on attachment 341992
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341992&amp;action=review

&gt;&gt; Source/WebKit/UIProcess/ios/fullscreen/FullscreenTouchSecheuristic.cpp:81
&gt;&gt; +    return std::max(std::min(normalizedTimeDelta * m_weight, 1.0), 0.0);
&gt; 
&gt; So the weight factor is incorrect when you pass some threshold, but with the clamping, how long must I wait in order for the old influence to be at 0, and basically we start from scratch? Before, the old influence would end up having a negative impact.

We set the ramp down speed to 1_s and the weight to 0.1, so it would take 10 seconds until the old influence had negative impact under the old code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430474</commentid>
    <comment_count>5</comment_count>
      <attachid>341992</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-06-06 09:36:18 -0700</bug_when>
    <thetext>Comment on attachment 341992
Patch

Clearing flags on attachment: 341992

Committed r232545: &lt;https://trac.webkit.org/changeset/232545&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430475</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-06-06 09:36:20 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>341992</attachid>
            <date>2018-06-05 13:57:10 -0700</date>
            <delta_ts>2018-06-06 09:36:18 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-186320-20180605135709.patch</filename>
            <type>text/plain</type>
            <size>1614</size>
            <attacher name="Jeremy Jones">jeremyj-wk</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjMxOTkxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IDNhYmJkMTU4ODhlZTIyN2Nk
MmMyNjdmZjgzOWJjM2UxZWRlZTZiZWEuLjZmZmI5YTY1M2M4MGViYTYwNGEzZTJhYzk4NTU5Yzli
Y2RmN2UyZTggMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTgtMDYtMDUgIEplcmVteSBK
b25lcyAgPGplcmVteWpAYXBwbGUuY29tPgorCisgICAgICAgIGF0dGVudWF0aW9uRmFjdG9yIHNo
b3VsZCBiZSBpbiByYW5nZSBbMCwxXQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTg2MzIwCisgICAgICAgIHJkYXI6Ly9wcm9ibGVtLzQwODIxNDU2CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9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