diff --git a/js/controllers/index.js b/js/controllers/index.js index 8a0d4b4ef..7374423b9 100644 --- a/js/controllers/index.js +++ b/js/controllers/index.js @@ -1,12 +1,14 @@ 'use strict'; -angular.module('copayApp.controllers').controller('IndexController', function($scope, go) { +angular.module('copayApp.controllers').controller('IndexController', function($scope, go, isCordova) { $scope.init = function() { }; $scope.swipe = function(invert) { - go.swipe(invert); + if (isCordova) { + go.swipe(invert); + } }; }); diff --git a/js/services/go.js b/js/services/go.js index c0b82681d..bdce5efe7 100644 --- a/js/services/go.js +++ b/js/services/go.js @@ -27,7 +27,9 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope, hideSidebars(); } else { - elem.addClass('move-right'); + if ($rootScope.iden && !$rootScope.hideNavigation) { + elem.addClass('move-right'); + } } } else { @@ -35,7 +37,9 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope, hideSidebars(); } else { - elem.addClass('move-left'); + if ($rootScope.iden && $rootScope.iden.listWallets().length >1) { + elem.addClass('move-left'); + } } } };