Disable slide menu on gesture


#1

Hi all.

Could you give me right solution to disable slide menu on gesture (slide left/right). Keep only click on icon in header.
Is that possible?

Ionic docs says:

By default, side menus are hidden underneath its side menu content, and can be opened by either swiping the content left or right, or toggling a button to show the side menu.


#2

Look for ion-side-menu-content and add attribute drag-content=“false”

http://ionicframework.com/docs/api/directive/ionSideMenuContent/


#3

Try following code…

$ionicSideMenuDelegate.canDragContent(true); 
$ionicSideMenuDelegate.canDragContent(false);