JQuery Mobile Issue - CSS Hover events on form buttons requiring a double-tap in IOS

I have a custom web application that I built using jQuery Mobile (version 1.4.3)  that's presenting a problem when using an iOS device (ie: iPhone, iPad, etc).  


username: demo123
password: demo123

The problem that I'm having is that the CSS hover events that I've attached to each of the buttons is requiring that the users have to "double-tap" on the Back and Next buttons in order to move backwards and forward in the quiz.  

How can I fix this without having to sacrifice the the hover effects on the buttons?  Is there a snippet of javascript code that I can add to the application that would handle this on iOS specific devices?

- Yvan
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
What hover events did you apply to the Back and Next buttons?
egoselfaxisAuthor Commented:
Well .. I don't actually mean "events" as in JavaScript events.  I'm just changing the background-color of the buttons.

	input[type="button"]:hover {
		color: #222;
		background: #ddd; /* Old browsers */
		background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
		background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
		background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
		background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
		background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
		background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */
	  border: 1px solid #888;
	  border-top: 1px solid #aaa;
	  border-left: 1px solid #aaa; }

Open in new window

Bob LearnedCommented:
Well, that doesn't make sense, since CSS styles shouldn't affect behavior.  Are you saying that if you don't specify the hover styles that the buttons work as expected?
egoselfaxisAuthor Commented:
Yes -- this is apparently a known issue on iOs devices, and I have verified that removing the hover effects suppresses the "double-tap" issue.  I'd prefer to not have to remove them altogether, though, so I'm wondering if there might be a way to suppress them ONLY on iOS devices. Any thoughts?

- Yvan
Bob LearnedCommented:
OK, I don't have as much experience with mobile devices as I would like, so it is good to know that "you're not meant to hover on a touchscreen device."

I saw a suggestion to add a :focus rule for the touch.


Don’t go changing it, just add `:focus` so it responds to a touch..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.