touchevents.html
changeset 141 e888fa7f393a
parent 140 d111c73bb11b
child 182 6db1e9aed6f5
equal deleted inserted replaced
140:d111c73bb11b 141:e888fa7f393a
   722         <a>preventDefault</a> method of <a>touchstart</a> or <a>touchmove</a>
   722         <a>preventDefault</a> method of <a>touchstart</a> or <a>touchmove</a>
   723         is called, the user agent should not dispatch any mouse event that
   723         is called, the user agent should not dispatch any mouse event that
   724         would be a consequential result of the the prevented touch event.
   724         would be a consequential result of the the prevented touch event.
   725       </p>
   725       </p>
   726 
   726 
       
   727       <p class="note">
       
   728         If a Web application can process touch events, it can intercept them, 
       
   729         and no corresponding mouse events would need to be dispatched by the 
       
   730         user agent. If the Web application is not specifically written for 
       
   731         touch input devices, it can react to the subsequent mouse events instead.
       
   732       </p>
       
   733 
   727       <p>
   734       <p>
   728         If the user agent intreprets a sequence of touch events as a click,
   735         If the user agent intreprets a sequence of touch events as a click,
   729         then it should dispatch <a>mousemove</a>, <a>mousedown</a>,
   736         then it should dispatch <a>mousemove</a>, <a>mousedown</a>,
   730         <a>mouseup</a>, and <a>click</a> events (in that order) at the location
   737         <a>mouseup</a>, and <a>click</a> events (in that order) at the location
   731         of the <a>touchend</a> event for the corresponding touch input.  If the
   738         of the <a>touchend</a> event for the corresponding touch input.  If the