From 4c4a14d068594dec59dc3141cfebe8b6ee8f8615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Mon, 17 Apr 2017 12:28:23 -0300 Subject: [PATCH] fix bug when changing selector too fast --- src/js/directives/directives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/directives/directives.js b/src/js/directives/directives.js index ecf849b10..8e9022236 100644 --- a/src/js/directives/directives.js +++ b/src/js/directives/directives.js @@ -157,7 +157,7 @@ angular.module('copayApp.directives') scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[0] : null); }); - scope.$on("$ionicSlides.slideChangeEnd", function(event, data) { + scope.$on("$ionicSlides.slideChangeStart", function(event, data) { scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[data.slider.activeIndex] : null); }); }