Home > Web Front-end > H5 Tutorial > Solution to flashing button click on ios

Solution to flashing button click on ios

一个新手
Release: 2017-10-16 10:36:15
Original
2488 people have browsed it

On the ios side, there is a 300ms delay in triggering the click event on the Safari browser. The style added for touch will conflict with the click and cause flickering problems.

The corresponding sequence of touch events in Safari is as follows:

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

At this time, you can try the following style to cancel the default style of the click event to eliminate the page flickering problem


*{
    -webkit-tap-highlight-color:rgba(0,0,0,0);
}
Copy after login

The above is the detailed content of Solution to flashing button click on ios. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template