open
Public

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.https://www.chicocatreeservice.com/

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: https://www.nczonline.net/blog/2012/07/05/ios-has-a-hover-problem/

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
  1. It's works! Thank you so much, Vivi!! :)

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

#2

Awesome! Learned alot thanks so much keep posting more.https://breastaugmentationhuntingtonbeach.com

#3

Thank you for this lovely article! dentalimplantsseattlewa.com

#4

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

 

#5

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

#6

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

#7

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

#8

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

#9

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

#10

https://www.bostondeckpros.com

Thank you for helping out Vivi. It really works. 

 

#11

I love your content! Great job!

https://pittsburghhearingaids.com

#12

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

 

https://hearingaidsjacksonvillefl.com

#13

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

 

https://hearingaidsbatonrouge.com

#14

Please login or Register to Submit Answer