diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-04-12 19:53:50 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-04-12 19:53:50 -0400 |
| commit | 239e047ca8c1509ec4a6a7a64b8800eecb51b820 (patch) | |
| tree | e1ef47dd71063a8b04a2c37d91381a3b187835cd /www/js/MontageCtrl.js | |
| parent | 0eb68abcb4b10c72ffdb0a02e917a6be2119c87c (diff) | |
#218 - montage now allows natural scrolling
Former-commit-id: b75d177fe2bec7a4077882a09d5c82507af6cef0
Diffstat (limited to 'www/js/MontageCtrl.js')
| -rw-r--r-- | www/js/MontageCtrl.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 6c26b124..2cd606c0 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -276,6 +276,7 @@ function initPackery() pckry.bindDraggabillyEvents(draggie); draggies.push(draggie); draggie.disable(); + draggie.unbindHandles(); }); pckry.on( 'dragItemPositioned', itemDragged ); @@ -417,7 +418,7 @@ function initPackery() }); }; - $scope.swipeUp = function() + /* $scope.swipeUp = function() { //console.log ("SWIPE UP"); $ionicScrollDelegate.$getByHandle("montage-delegate").scrollBy(0, $rootScope.devHeight/2, true); @@ -427,7 +428,7 @@ function initPackery() { //console.log ("SWIPE DOWN"); $ionicScrollDelegate.$getByHandle("montage-delegate").scrollBy(0, -($rootScope.devHeight/2), true); - }; + };*/ @@ -593,6 +594,7 @@ function initPackery() for (i=0; i < draggies.length; i++) { draggies[i].enable(); + draggies[i].bindHandles(); } // reflow and reload as some may be hidden @@ -605,6 +607,7 @@ function initPackery() for ( i=0; i < draggies.length; i++) { draggies[i].disable(); + draggies[i].unbindHandles(); } for (i=0; i < $scope.MontageMonitors.length; i++) { |
