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
Post a Comment