<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20109</bug_id>
          
          <creation_ts>2012-11-28 01:16:15 +0000</creation_ts>
          <short_desc>Permitted values for pressure</short_desc>
          <delta_ts>2013-02-07 02:08:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>PointerEventsWG</product>
          <component>Pointer Events specification</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Jacob Rossi [MSFT]">jrossi</reporter>
          <assigned_to name="Jacob Rossi [MSFT]">jrossi</assigned_to>
          <cc>public-pointer-events-bugzilla</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78967</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2012-11-28 01:16:15 +0000</bug_when>
    <thetext>Opening on behalf of François Remy.

Current spec text defines pressure as a normalized value where 0 is no pressure and 1 is maximum pressure.  This creates a potential issue where more capable devices are penalized such to work on the same range of values, meaning a user may have to apply more pressure on one device to achieve the same result as another.  

Detailed discussion:
http://lists.w3.org/Archives/Public/public-pointer-events/2012OctDec/0018.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79779</commentid>
    <comment_count>1</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2012-12-09 19:57:25 +0000</bug_when>
    <thetext>12/4 telecon resolution:

-For devices that do not support pressure (e.g. a mouse), pressure must be 1 when in the active buttons state and 0 otherwise.
-Pressure will remain normalized (e.g. in the range of [0,1]) (no change)

http://lists.w3.org/Archives/Public/public-pointer-events/2012OctDec/0091.html

Change: http://dvcs.w3.org/hg/pointerevents/rev/47212a0ea91c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82566</commentid>
    <comment_count>2</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2013-02-05 04:52:43 +0000</bug_when>
    <thetext>We took a second look at this issue and have a suggested tweak to the change we made [1]. In most pen enabled applications, mouse generally emulates half the maximum pressure of pen.  As an example, Paint provides half the stroke width when using a mouse as compared with maximum pressure of a pen. This is generally in line with guidance Microsoft has given for pen drawing for quite some time: minimum pressure should be 50% stroke width, half-way pressure is 100% (e.g. what mouse should produce), and maximum pressure is 150% [2].

Given that, I reactivated this bug for us to consider making the value 0.5 rather than 1 when the device is in the active buttons state. 

Similar to the pressure issue, the spec currently allows implementations to provide a width/height that’s “typical of the device type” when the hardware doesn’t support contact geometry [3]. But it doesn’t require it. IE10  does not simulate width/height for devices that do not provide geometry. But I think we’d probably make IE do so in our next release, similar to emulating pressure. I’d like to consider making the MAY (optional) a SHOULD (recommended) in the spec for emulating width/height. I think the emulation we’d use in IE is:

Mouse, Pen – 1x1 width
Touch without hw support for geometry – about 40x40 CSS pixels ***

This “smart default” approach should also apply to tiltX/tiltY, but the existing default of 0 seems appropriate for those (e.g. the stylus is normal to the screen).

-Jacob

*** Adjusted for zoom. 40 CSS pixels is approximately 11mm, the average width of a touch contact [4].

[1] http://dvcs.w3.org/hg/pointerevents/rev/47212a0ea91c
[2] http://msdn.microsoft.com/en-us/subscriptions/cc300776.aspx#S11 
[3] https://dvcs.w3.org/hg/pointerevents/raw-file/tip/pointerEvents.html#widl-PointerEvent-width 
[4] http://bit.ly/win8touchguidance</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82674</commentid>
    <comment_count>3</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2013-02-07 02:08:47 +0000</bug_when>
    <thetext>Making change as suggested per 2/5 telecon.

https://dvcs.w3.org/hg/pointerevents/rev/f8d79fb0835c

RESOLUTION:http://lists.w3.org/Archives/Public/public-pointer-events/2013JanMar/0084.html
http://www.w3.org/2013/02/05-pointerevents-minutes.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>