E
E
Eugene2018-12-20 10:19:53
css
Eugene, 2018-12-20 10:19:53

Why does the iPhone need a double click to press a button?

The site has a Select button. It changes the data in the block with Ajax.
On PC and Android smartphones, everything is super - pressed - the button worked and returned the data.
On the iPhone, you need to click on it twice for the Click event to work
. They checked it on iPhone 6 and 7.
At first I thought it was because of Hover. Type on the first style Hover works, and on the second click. Removed Hover - also
the project itself is here https://aladin1.azurewebsites.net/Shop/Catalog

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ihor Bratukh, 2018-12-20
@BRAGA96

Where is the click event registration code?
Try like this:

$(selector).on('click touch', function () { ... });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question