touchevents.html
changeset 91 b2c4ba0eb943
parent 87 4b363819e79b
child 92 2e881e5a2e3d
equal deleted inserted replaced
88:dcdef856c426 91:b2c4ba0eb943
   158       </p>
   158       </p>
   159 
   159 
   160       <dl title='interface Touch' class='idl'>
   160       <dl title='interface Touch' class='idl'>
   161         <dt>readonly attribute long identifier</dt>
   161         <dt>readonly attribute long identifier</dt>
   162         <dd>
   162         <dd>
   163           An identification number for each <a>touch point</a>, unique to that
   163           An identification number for each <a>touch point</a>.
   164           <a>touch point</a> per session.
   164 
   165 
   165           When a touch point becomes active, it must be assigned an
   166           <p>
   166           <a>identifier</a> that is distinct from any other <a>active touch
   167             The algorithm for determining the <a>identifier</a> value is as
   167           point</a>.  While the touch point remains active, all events that
   168             follows:
   168           refer to it must assign it the same <a>identifier</a>.
   169           </p>
       
   170           <ol>
       
   171             <li>
       
   172               if there are no other <a>active touch event session</a>s, the
       
   173               value of <a>identifier</a> must be <code>0</code>
       
   174             </li>
       
   175             <li>
       
   176               if there is at least one <a>active touch event session</a>, the
       
   177               value of <a>identifier</a> must be the lowest integer not
       
   178               currently used by any active <a>Touch</a> object in any
       
   179               <a>active touch event session</a>
       
   180             </li>
       
   181           </ol>
       
   182         </dd>
   169         </dd>
   183 
   170 
   184         <dt>readonly attribute long screenX</dt>
   171         <dt>readonly attribute long screenX</dt>
   185         <dd>
   172         <dd>
   186           x-coordinate of point relative to the screen
   173           x-coordinate of point relative to the screen
   547 
   534 
   548     <section>
   535     <section>
   549       <h2>Glossary</h2>
   536       <h2>Glossary</h2>
   550 
   537 
   551       <dl>
   538       <dl>
   552         <dt><dfn>active touch event session</dfn></dt>
   539         <dt><dfn>active touch point</dfn></dt>
   553         <dd>
   540         <dd>
   554           A conceptual state in which there is at least one instance of a
   541           A <a>touch point</a> which is currently on the screen and is being
   555           <a>TouchEvent</a> event with at least one non-empty <a>TouchList</a>.
   542           tracked by the user agent.  The touch point becomes active when the
   556           <!-- <pre class='example'>
   543           user agent first dispatches a <a>touchstart</a> event indicating its
   557           </pre> -->
   544           appearance.  It ceases to be active after the user agent dispatches a
       
   545           <a>touchend</a> or <a>touchcancel</a> event indicating that the touch
       
   546           point is removed from the surface or no longer tracked.
   558         </dd>
   547         </dd>
   559 
   548 
   560         <dt><dfn>touch point</dfn></dt>
   549         <dt><dfn>touch point</dfn></dt>
   561         <dd>
   550         <dd>
   562           The coordinate point at which a pointer (e.g finger or stylus)
   551           The coordinate point at which a pointer (e.g finger or stylus)