mouse hover issue fixes on IOS devices




  var windowWidth = jQuery(window).width();
  var device = navigator.userAgent.toLowerCase();
  var ios = device.match(/(iphone|ipod|ipad)/);
  if (ios && windowWidth > 992) {
  jQuery("nav li > a").click(function(event){
  jQuery(this).removeClass('.over');
  jQuery(this).addClass('over')
  event.preventDefault();
  });
  jQuery("nav li > a").dblclick(function() {
  window.location = this.href;
  return false;
  });
  }

Comments

Popular posts from this blog

TypeScrpt basics

font-face HTTPS issue fixes