Click the button on ios to flash the solution (small tips), iostips

Source: Internet
Author: User

Click the button on ios to flash the solution (small tips), iostips

On ios, a Ms delayed response is triggered for the click event on the safari browser. The style added for the touch will conflict with the click event and cause a flash problem.

The order of touch events in safari is as follows:

Touchstart --> touchmove --> touchend --> click (300 ms)

In this case, you can use the following style to cancel the default style of the click event to eliminate the page flash problem.

* {-Webkit-tap-highlight-color: rgba (0, 0, 0 );}

(By the way, the latency of MS is mainly used to determine whether the user is double-clicking)

Related Article

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.