Scroll bug fix introduction

The "scrollBugFix" add-on prevents touchscreen devices from unintentionally scrolling the page while the menu is opened, it is turned on by default. To turn it off or to customize how it works, change the scrollBugFix options and configuration.

<script>
   document.addEventListener(
      "DOMContentLoaded", () => {
         new Mmenu( "#my-menu", {
            scrollBugFix: {
               // scroll bug fix options
            }
         }, {
            scrollBugFix: {
               // scroll bug fix configuration
            }
         });
      }
   );
</script>

Options for the "scrollBugFix" add-on

Option Datatype Default value Description
scrollBugFix A map of options or false for scrollBugFix.fix.
{
fix Boolean true Whether or not to fix the scroll bug on touchscreens.
}

Configuration for the "scrollBugFix" add-on

The "scrollBugFix" add-on has no configuration options.

API methods for the "scrollBugFix" add-on

The "scrollBugFix" add-on has no API methods.

SCSS variables for the "scrollBugFix" add-on

The "scrollBugFix" add-on has no SCSS variables.