From 4fc9076c7ec080c5e2285162dfb9811e2981a445 Mon Sep 17 00:00:00 2001 From: Jamal Jackson Date: Fri, 30 Sep 2016 11:13:55 -0400 Subject: [PATCH] disable swiping when slide count is 1 --- src/js/directives/directives.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/directives/directives.js b/src/js/directives/directives.js index e20643e9f..6eedb407e 100644 --- a/src/js/directives/directives.js +++ b/src/js/directives/directives.js @@ -154,6 +154,8 @@ angular.module('copayApp.directives') link: function(scope, element, attrs) { scope.$on("$ionicSlides.sliderInitialized", function(event, data) { scope.slider = data.slider; + if(scope.slider.slides.length == 1) + scope.slider.lockSwipes(); scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[0] : null); });