Mobile-click Latency Workaround

Source: Internet
Author: User

First you need to know why the click on the mobile side is dull?

Google's developer document 300MS tap delay, gone away can find the reason

The mobile side to determine is not a double-click, so after clicking can not immediately fire click, to wait 300ms, until the confirmation is not double-click to trigger click. So it causes the click to have a delay. Method 1<meta name= "viewport" content="Width=device-width" > is to set the viewport to the actual pixel of the device, there will be no 300ms delay, and is supported by the Ie/firefox/safari (IOS 9.3), that is, mobile development now can not be concerned about the click will be more sluggish. Method 2 sets initial-scale=1.0, which is available on Chrome, but Safari does not:<meta name= "viewport" content="initial-scale=1.0" > Method 3Set CSS:HTML {touch-action:manipulation;  }This also cancels out the 300ms delay, which both Chrome and Safari can take effect.

Mobile-click Latency Workaround

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.