dragOpen (object)
A map of options for dragging the menu open.
Possible values: an object, true
or false
.
Code example:
$("#my-menu").mmenu({ dragOpen : { open : true, threshold : 100, pageNode : "#page" } });
Note that this will only work if jQuery.hammer.js is included.
dragOpen.open (boolean)
Whether or not the menu should open when dragging the page.
Default value: false
.
Tip: Hammer.js enables dragging on touch and desktop devices. If you only want to enable dragging the menu open on touchscreens, test for touch support using: $.fn.mmenu.support.touch
.
dragOpen.threshold (number)
The minimum amount of pixels to drag before actually opening the menu, less than 50 is not advised.
Default value: 50
.
dragOpen.pageNode (string, jQuery or function)
The node on which the user can drag to open the menu.
Default value: undefined
(the entire page).