Is there any way to disable that?
I only mean in the browser... When you click a link or a button or a div that has a click function on it, it flickers a grey box where you clicked quickly. How do i prevent this?
To get to Safari Settings on an iPad, you open the Settings App, and scroll down to "Safari".
You could set a transparent color to the -webkit-tap-highlight-color
property of that element.
a {
-webkit-tap-highlight-color: transparent;
}
Using mobile Safari in Phonegap, only this worked:
* { -webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
}
Source: iPhone WebKit CSS animations cause flicker
Also, on the main panel, enable rendering:
div.myPanelOrWhatever
{
-webkit-transform: translate3d(0, 0, 0)
}
Source: Prevent flicker on webkit-transition of webkit-transform
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With