<?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>91799</bug_id>
          
          <creation_ts>2012-07-19 16:54:49 -0700</creation_ts>
          <short_desc>Touch force values can be outside the valid range on Android</short_desc>
          <delta_ts>2019-02-06 09:19:08 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Android</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Rick Byers">rbyers</reporter>
          <assigned_to name="Ben Murdoch">benm</assigned_to>
          <cc>peter</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>674078</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2012-07-19 16:54:49 -0700</bug_when>
    <thetext>The TouchEvent v2 spec says that force should be between 0 and 1: http://dvcs.w3.org/hg/webevents/raw-file/default/touchevents.html#widl-Touch-force

On Android I can easily get values greater than 1.  We should probably try to infer the maximum value (maybe by keeping track) and scale appropriately.  Alternately we should consider not reporting force at all (in order to avoid a compatibility burden later).

Test pages I used are:
http://www.rbyers.net/paint.html
http://www.rbyers.net/eventTest.html (with &apos;simple&apos; turned off to get force/radius info)

Ben, please reassign as appropriate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>782598</commentid>
    <comment_count>1</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2012-12-04 09:13:45 -0800</bug_when>
    <thetext>+peter who said he could look into this.

benm said:
Force correlates to the Android MotionEvent.getPressure API, which the documentation states that the value &quot;generally ranges from 0 (no pressure at all) to 1 (normal pressure), however values higher than 1 may be generated depending on the calibration of the input device.&quot;

Would it be reasonable to just trunacte the values we get out of the Android API at 1 in order to be compliant?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044616</commentid>
    <comment_count>2</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2014-10-28 14:54:45 -0700</bug_when>
    <thetext>Obsolete.  Fixed in chromium.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503320</commentid>
    <comment_count>3</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:19:08 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>