Mobile Multi-Touch Touchend event does not trigger properly

Source: Internet
Author: User
<span id="Label3"><p>Mobile Touch-screen events are mostly Touchstart,touchmove,touchend</p><p>Execution order Touchstart (start)-touchmove (move)-touchend (end)</p><pre><span style="color: #0000ff;"></span> for (<span style="color: #0000ff;">var</span> i = 0; i < dom.length; i++<span style="color: #000000;">) {dom[i].addeventlistener (</span><span style="color: #0000ff;">function</span><span style="color: #000000;"></span><span style="color: #0000ff;">False) </span><span style="color: #000000;">); Dom[i].addeventlistener (</span><span style="color: #0000ff;">function</span> <span style="color: #000000;"> (e) { ... </span> .. <span style="color: #0000ff;">false</span> <span style="color: #000000;">);<br>}</span></pre><p>The only thing that can be done touchstart-touchend is to touch one.</p><p>But when multi-touch, the first touch of the DOM ended without triggering the touchend event, causing a bug</p><p>The workaround is to call E.preventdefault () when the Touchstart event is triggered;</p><p>Mobile Multi-Touch Touchend event does not trigger properly</p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.