Skip to content

Commit

Permalink
fix(navigation): preventing swipe-to-go-back when side-menu is open o…
Browse files Browse the repository at this point in the history
…n the right
  • Loading branch information
Dan Bucholtz committed Apr 11, 2016
1 parent b0218b5 commit 9c614d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/angular/controller/navViewController.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ IonicModule
'$ionicViewSwitcher',
'$ionicConfig',
'$ionicScrollDelegate',
function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate, $ionicNavViewDelegate, $ionicHistory, $ionicViewSwitcher, $ionicConfig, $ionicScrollDelegate) {
'$ionicSideMenuDelegate',
function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate, $ionicNavViewDelegate, $ionicHistory, $ionicViewSwitcher, $ionicConfig, $ionicScrollDelegate, $ionicSideMenuDelegate) {

var DATA_ELE_IDENTIFIER = '$eleId';
var DATA_DESTROY_ELE = '$destroyEle';
Expand Down Expand Up @@ -353,7 +354,7 @@ function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate,
var cancelData = {};

function onDragStart(ev) {
if (!isPrimary || !$ionicConfig.views.swipeBackEnabled() ) return;
if (!isPrimary || !$ionicConfig.views.swipeBackEnabled() || $ionicSideMenuDelegate.isOpenRight() ) return;


startDragX = getDragX(ev);
Expand Down

0 comments on commit 9c614d3

Please sign in to comment.