I use some Buttons in my interface and when i test my software in the Android, works correct, but when i test in the IOS, don’t works correct. In the IOS i need to click twice on the button to work. Help me about this?

  1. Great question. Waiting also for answers.

14 answers

Staff May 24, 2016

Hello Kássia, this is because Safari on iOS simulates the “hover” event in a special way: the first tap is taken as “hover”, while the second tap triggers the “click” event. This behavior has been introduced on this article:

Besides changing the look, the “hover” state of button is actually useless on touchscreen devices. If your GUI is dedicated on touchscreen devices, you can use the workaround below to remove the “hover” state in all button elements:

The idea is quite simple, when the first page gets loaded, find out all button elements and remove their “mouseenter” event handler, so all buttons will not have the “hover” state.


  1. It's works! Thank you so much, Vivi!! :)

Awesome! Learned alot thanks so much keep posting more.  kitchen remodel spokane


Awesome! Learned alot thanks so much keep posting more.


Thank you for this lovely article!


love the idea! soo glad i found this site! mold remediation nashville



Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. permanent hair removal


Great site thanks admin. More power.  privacy fence dothan al


Awesome! Learned alot thanks so much keep posting more.  bigger boobs


Awesome! This is very helpful. Thank you.Drywall Taping


Thank you for this lovely article!  bookkeeping services san antonio tx


Thank you for helping out Vivi. It really works. 



I love your content! Great job!


I highly appreciate your work here! Thank you so much!


I wanna know more about this because this is really informative!


Please login or Register to Submit Answer