Fastclick: Handling Mobile Click event 300 ms delay

Source: Internet
Author: User

Fastclick: Handling Mobile Click event 300 ms delay

1. Compatibility
    • Mobile Safari for IOS 3 and later
    • IOS 5 and later versions of Chrome
    • Chrome (ICS) on Android
    • Opera Mobile 11.5 and later
    • Android 2 since Android browser
    • PlayBook OS 1 and later
2, do not apply the scene of Fastclick

Desktop browser;
If Chrome 32+ on Width=device-width,android is set in the viewport meta tag, 300ms delay is disabled;

<meta name="viewport" content="width=device-width, initial-scale=1">
    • 1

Video META tags if you set up chrome on user-scalable=no,android (all versions), 300ms latency is disabled.
IE10, you can use CSS properties-ms-touch-action:none to disallow the element double-click Scaling (refer to article).

3. Installation:

The command to install Fastclick is performed first.

NPM Install Fastclick-s

After that, it is introduced in Main.js and bound to the body

import FastClick from ‘fastclick‘FastClick.attach(document.body);

Fastclick: Handling Mobile Click event 300 ms delay

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.