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

Solution to flashing button click on ios

一个新手
一个新手Original
2017-10-16 10:36:152493browse

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);
}

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!

Statement:
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