jquery - iPad/iPhone hover problem causes the user to double click a link -


I have some websites I created earlier, which uses jquery mouse events ... just one The iPad has been found and I have seen that all mouse clicks on events are translated into ... so for example I have to do two clicks instead of one. (Hover before actual click)

There Is there any remedy ready to solve this? Maybe that's a jquery command I used shoudl instead of mouseover / etc. Thanks!

No, it has been thoroughly tested, but since the events that touch the iOS, these You can work, assuming that you are in a jQuery setting.

  $ ('a'). ('Click touchend', function (e) {Var el = $ (this); var link = el.attr ('href'); window.location = link;});  

The idea is that mobile webkit is touched by a at the end of a tap causes the incident to fire, so we listen to that and Then as soon as touched event has been removed from a link.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -