From 3e902602c18b8f5b3032e4435a31d569c5ff6696 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 10 Mar 2016 21:31:03 -0500 Subject: allowed for scrolling when montage icons fill screen Former-commit-id: 7fe60d9a945072899c921cd463f57270e9dafd58 --- www/js/MontageCtrl.js | 14 ++++++++++++++ www/templates/montage.html | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index ca9d3dd6..9d0fe352 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -311,6 +311,20 @@ function initPackery() } + $scope.swipeUp = function() + { + console.log ("SWIPE UP"); + $ionicScrollDelegate.$getByHandle("montage-delegate").scrollBy(0, $rootScope.devHeight/2, true); + }; + + $scope.swipeDown = function() + { + console.log ("SWIPE DOWN"); + $ionicScrollDelegate.$getByHandle("montage-delegate").scrollBy(0, -($rootScope.devHeight/2), true); + }; + + + $scope.closeReorderModal = function () { diff --git a/www/templates/montage.html b/www/templates/montage.html index efb853e8..9d2837a5 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -21,7 +21,7 @@ - + @@ -47,7 +47,7 @@
- +
@@ -56,7 +56,7 @@
- +
-- cgit v1.2.3