Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Floating menu always jumps to top #577051

    hy again :)

    i found a workaround with js-only in my child theme:
    var savedPos = 0;
    jQuery(‘#advanced_menu_toggle’).click(function(e){
    savedPos = jQuery(window).scrollTop();
    });
    jQuery(‘#advanced_menu_hide’).click(function(e){
    setTimeout(function(){ jQuery(window).scrollTop(savedPos); }, 1000);
    });

    the timeout is necessary, as it works only when the mobile menu is completely hidden. do you know any callback i could use to make this more robust?

    thanks
    matt

    in reply to: Floating menu always jumps to top #577035

    hy,
    i just found this post as i also want to disable the scrollTop-functionality. i am concerned to use your suggested methods, as i guess it will be discarded on theme update?
    do you have any idea on how to hook into this functionality with an own js-function or anything else?

    thanks,
    matt

Viewing 2 posts - 1 through 2 (of 2 total)