touchevents.html
branchv1-errata
changeset 230 bca491d2ba3f
parent 229 0c110aed1866
equal deleted inserted replaced
229:0c110aed1866 230:bca491d2ba3f
   596           The <a>touch point</a> or points that were removed must be included
   596           The <a>touch point</a> or points that were removed must be included
   597           in the <a>changedTouches</a> attribute of the <a>TouchEvent</a>, and
   597           in the <a>changedTouches</a> attribute of the <a>TouchEvent</a>, and
   598           must not be included in the <a>touches</a> and <a>targetTouches</a>
   598           must not be included in the <a>touches</a> and <a>targetTouches</a>
   599           attributes.
   599           attributes.
   600         </p>
   600         </p>
       
   601 
       
   602         <p>
       
   603           If this event is cancelled, any sequence of touch events that
       
   604           includes this event must not be <a href="#click-events">interpreted
       
   605           as a click</a>.
       
   606         </p>
   601       </section>
   607       </section>
   602 
   608 
   603       <section>
   609       <section>
   604         <h3 id="event-touchmove">The <dfn class="event">touchmove</dfn> event</h3>
   610         <h3 id="event-touchmove">The <dfn class="event">touchmove</dfn> event</h3>
   605         <p>
   611         <p>
   713         The user agent may dispatch both touch events and mouse events
   719         The user agent may dispatch both touch events and mouse events
   714         [[!DOM-LEVEL-2-EVENTS]] in response to the same user input.  If the
   720         [[!DOM-LEVEL-2-EVENTS]] in response to the same user input.  If the
   715         user agent dispatches both touch events and mouse events in response to
   721         user agent dispatches both touch events and mouse events in response to
   716         a single user action, then the <a>touchstart</a> event type must be
   722         a single user action, then the <a>touchstart</a> event type must be
   717         dispatched before any mouse event types for that action.  If the
   723         dispatched before any mouse event types for that action.  If the
   718         <a>preventDefault</a> method of <a>touchstart</a> or <a>touchmove</a>
   724         <a>preventDefault</a> method of <a>touchstart</a>, <a>touchmove</a>, or
   719         is called, the user agent should not dispatch any mouse event that
   725         <a>touchend</a> is called, the user agent should not dispatch any mouse
   720         would be a consequential result of the the prevented touch event.
   726         event that would be a consequential result of the the prevented touch
       
   727         event.
   721       </p>
   728       </p>
   722 
   729 
   723       <p class="note">
   730       <p class="note">
   724         If a Web application can process touch events, it can intercept them, 
   731         If a Web application can process touch events, it can intercept them, 
   725         and no corresponding mouse events would need to be dispatched by the 
   732         and no corresponding mouse events would need to be dispatched by the 
   726         user agent. If the Web application is not specifically written for 
   733         user agent. If the Web application is not specifically written for 
   727         touch input devices, it can react to the subsequent mouse events instead.
   734         touch input devices, it can react to the subsequent mouse events instead.
   728       </p>
   735       </p>
   729 
   736 
   730       <p>
   737       <p id="click-events">
   731         If the user agent intreprets a sequence of touch events as a click,
   738         If the user agent intreprets a sequence of touch events as a click,
   732         then it should dispatch <a>mousemove</a>, <a>mousedown</a>,
   739         then it should dispatch <a>mousemove</a>, <a>mousedown</a>,
   733         <a>mouseup</a>, and <a>click</a> events (in that order) at the location
   740         <a>mouseup</a>, and <a>click</a> events (in that order) at the location
   734         of the <a>touchend</a> event for the corresponding touch input.  If the
   741         of the <a>touchend</a> event for the corresponding touch input.  If the
   735         contents of the document have changed during processing of the touch
   742         contents of the document have changed during processing of the touch