<?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>25220</bug_id>
          
          <creation_ts>2014-04-01 01:04:03 +0000</creation_ts>
          <short_desc>Use elided pseudo-code instead of alert() in examples 1 and 2</short_desc>
          <delta_ts>2014-05-31 22:15:45 +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>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=25214</see_also>
          <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="Patrick H. Lauke">redux</reporter>
          <assigned_to name="Jacob Rossi [MSFT]">jrossi</assigned_to>
          <cc>public-pointer-events</cc>
          
          <qa_contact name="Pointer Events Bugzilla list">public-pointer-events-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103214</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick H. Lauke">redux</who>
    <bug_when>2014-04-01 01:04:03 +0000</bug_when>
    <thetext>Just to make the examples look a bit less amateurish, perhaps better to replace the various alert(...) statements in examples 1 and 2 with a comment and elipsis?

In example 1:

if(window.navigator.maxTouchPoints&gt;1)
    alert(&quot;Your user agent and hardware support multi-touch!&quot;);
}

change to

if(window.navigator.maxTouchPoints&gt;1)
    /* User agent and hardware support multi-touch */
}


In example 2:

switch(event.pointerType) {
    case &quot;mouse&quot;:
        /* mouse input detected */
        ...
        break;
    case &quot;pen&quot;:
        /* pen/stylus input detected */
        ...
        break;
    case &quot;touch&quot;:
        /* touch input detected */
        ...
        break;	
    default:
        /* pointerType is empty (could not be detected)
           or UA-specific custom type */
        ...
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107084</commentid>
    <comment_count>1</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2014-05-31 22:15:45 +0000</bug_when>
    <thetext>Fixed as suggested:
https://dvcs.w3.org/hg/pointerevents/rev/72268b279eb8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>