diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-08-11 15:46:24 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-08-11 15:46:24 -0400 |
| commit | 68af457b04b26e26f0414b821dabe7359e18a0ad (patch) | |
| tree | d7536f06e95a4bcef5e35cbaf55c3f34133e1d85 | |
| parent | 0894082388fabce415b06a0cfe1ea448684818bd (diff) | |
expiremental swipe to size - not enabled yet
| -rw-r--r-- | www/js/MontageCtrl.js | 17 |
1 files changed, 16 insertions, 1 deletions
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 //--------------------------------------------------------------------- |
