• Resolved tissi2

    (@tissi2)


    Hi everybody!

    My mobile menu immediately closes when I push the close icon. Shouldn’t it slide back in the same way as it slides to open?

    If this is the normal behaviour, where can I change it to sliding back upon hitting the close icon?

    Best regards

Viewing 1 replies (of 1 total)
  • Thread Starter tissi2

    (@tissi2)

    Hi!

    For all of those, who have the same issue, here is a solution:

    edit the maxmegamenu.js that you can find in your maxmegamenu plugin folder/js as follows:

    Change lines 561-575 (shown below)

                if (plugin.settings.effect_mobile === "slide" && ! force ) {
                    $menu.animate({"height":"hide"}, plugin.settings.effect_speed_mobile, function() {
                        $menu.css({
                            width: "",
                            left: "",
                            display: ""
                        });
                    });
                }
    
                $menu.css({
                    width: "",
                    left: "",
                    display: ""
                });

    to this:

                if (plugin.settings.effect_mobile === "slide" && ! force ) {
                    $menu.animate({"height":"hide"}, plugin.settings.effect_speed_mobile);
    			}

    – tested with Safarimobile and FFmobile 28.1

    I hope this is useful for somebody.
    Cheers!

Viewing 1 replies (of 1 total)

The topic ‘Mobile menu immediately closes instead of sliding’ is closed to new replies.