모바일에서 메뉴 오류

모바일에서 메인메뉴를 두번 터치해야 서브메뉴가 나오네요 ㅜ 한번만 터치해서 나오게 하고싶은데, 현재 문제되는 홈페이지 주소와 menu.js파일 코딩 첨부합니다. 도움주시면 감사하겠습니다ㅜ

 

 

Copy
(function($){     $(".slide_area").css("height", "0px");    $(".sub li a").mouseenter(function(){        $(".slide_area").animate({"height":"230px"}, 500);    });    $("#wrap").mouseenter(function(){        $(".slide_area").animate({"height":"0px"}, 500);    })     var h = $(window).height()    var sw = 1;    $(".list").click(function() {        if(sw==1) {            $(".wrap").css("height", h + "px");            $(".mobile_area").slideDown(500);            sw = sw * -1;        } else {            $(".wrap").css("height", "auto");            $(".mobile_area").slideUp(500);            sw = sw * -1;        }    });      $(".mob > li > ul").css("display", "none");    var sw = 1;    $(".mob > li").click(function() {        if(sw==1) {            $(this).find("ul").slideDown(500);            sw = sw * -1;        } else {            $(this).find("ul").slideUp(500);            sw = sw * -1;        }    });     $(".list").click(function(){        $(".m_memu_wrapper").css({display: "block", background: "rgba(0, 0, 0, 0.6)", zIndex: "1000"});        $("#m_gnb").stop().animate({right: "0"}, 500);    });     var sw = 1;    $("#m_gnb>ul>li").click(function(){        if(sw==1) {            $(this).find(".tit").css("color", "#d1204e");            $(this).find(".sub").css("display", "block");            sw = sw * -1;        } else {            $(this).find(".tit").css("color", "#000000");            $(this).find(".sub").css("display", "none");            sw = sw * -1;        }    });    $(".close").click(function(){        $(".wrap").css("height", "auto");        $(".m_memu_wrapper").css({display: "none"});        $("#m_gnb").stop().animate({right: "-300px"}, 500);    });    })(jQuery);

답변 1개

테스트해보니 저는 정상적으로 한번만 누르면 서브메뉴가 슬라이드되어 나오네요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

모바일에서 말씀하시는 건가요??
네 모바일에서 테스트해봤어요.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고