Home > Article > Web Front-end > Solution to flashing button click on ios
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!