Mobile Web Touch Events

Source: Internet
Author: User

Native touch events in WAP, Touchstart, Touchmove, Touchend, Touchcancel, these events are only triggered on the mobile side and are not valid on the PC side

The Click event has a 300ms latency in the mobile side, so in order to have a better user experience, another event from the above touch event is called a tap event. The tap event is a wrapped touch event (consisting of Touchstart and Touchend), which is typically responded to within 150ms, which means that the tab event is triggered when no more than 150ms is pressed and lifted

The above is their own packaging tab ideas, in fact, you can also use third-party libraries such as Zepto, using the tab event inside the package. or use the plugin Fastclick

Click the reason for the delay on the mobile side

This involves mobile device native gesture interaction, double-click to zoom in. How can I tell if I clicked or double-click? The Click event is triggered when the second click is not seen in 300ms after the first click. Otherwise, the double-click event is triggered. This is because of this part of the judgment, so there is a 300ms delay.

Point penetration/penetration phenomenon

Mobile Web Touch Events

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.