-
-
Save Nikolasgrizli/30a599147c2ff9fd20013dc2c9707bfe to your computer and use it in GitHub Desktop.
iphone menu closed problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var $ua = navigator.userAgent; | |
var $event = ($ua.match(/(iPod|iPhone|iPad)/i)) ? "touchstart" : "click"; | |
$(document).on($event, '.mob-menu-overlay', function (e) { | |
e.stopPropagation(); | |
$(document).find('.side-mob-menu').removeClass('open'); | |
if ($ua.match(/(iPod|iPhone|iPad)/i)) { | |
console.log('iPod|iPhone|iPad click'); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment