From 68af457b04b26e26f0414b821dabe7359e18a0ad Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Tue, 11 Aug 2015 15:46:24 -0400 Subject: expiremental swipe to size - not enabled yet --- www/js/MontageCtrl.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 4b9ed5be..281ca84d 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -17,6 +17,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' document.addEventListener("pause", onPause, false); document.addEventListener("resume", onResume, false); + $scope.showSizeButtons = false; $ionicPopover.fromTemplateUrl('templates/help/montage-help.html', { scope: $scope, }).then(function(popover) { @@ -294,7 +295,21 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' ] }); }; - + + $scope.onSwipeLeft = function ($index) + { + $scope.showSizeButtons = true; + }; + + $scope.onSwipeRight= function ($index) + { + $timeout( function() + { + $scope.showSizeButtons=false; + },1000); + + }; + //--------------------------------------------------------------------- // This marks a monitor as hidden in montage view //--------------------------------------------------------------------- -- cgit v1.2.3