How to fix the toggle menu in Libra theme from ThemeForest

Does the toggle menu not work in Chrome on your phone? I found the solution, thanks to Google. Replace the burger-menu code in custom.js with the below.

$('.burger-menu').on("click", function(){
$('.nav-menu > ul').slideToggle(500, function () {
if($('.nav-menu > ul').css('display') == 'none'){
$('.nav-menu > ul').show();
$('.nav-menu > ul').hide();


ThemeForest says I have support, so I could of asked them to fix it. It works, but it’s kind of weird, jQuery has some kind of bug. You’ll see it getting bigger, then closing, then it’ll show.

No, I don’t indent my code correctly.