user2507113
user2507113

Reputation: 151

jQuery Mouseover on Ipad

I code a responsive website with Bootstrap and I do an Mouseover with jQuery on images in desktop but on Ipad when I click on those images my function Mouseover works so there is a bug.

I want in my ipad website this function Mouseover doesn't launch. How I do that?

this is my code :

  $('.image a img').mouseover(function(){
  $(this).next().fadeIn();
  });

  $('.texte').mouseout(function(){
  $(this).fadeOut();
  });

Upvotes: 0

Views: 1120

Answers (1)

Greenlandi
Greenlandi

Reputation: 94

Maybe try the answer found in this question

if(!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) {
  $('.image a img').mouseover(function(){
  $(this).next().fadeIn();
  });

  $('.texte').mouseout(function(){
  $(this).fadeOut();
  });
}

Upvotes: 3

Related Questions