diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-03-07 10:00:54 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-03-07 10:00:54 -0500 |
| commit | 1d488da158a74e5c6f023b8da2b4f9247d346823 (patch) | |
| tree | dc2fcc516db8ea4a75a0e985949f369b6a22cbd4 /www/js/app.js | |
| parent | 8c6f9dfb14d23970ef715f2f785db8ef90d8ccfe (diff) | |
#179 selective dragging, resizing and adjusting working now
Former-commit-id: 2dfade9c4f18d034f5729b800bc55108974265a8
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js index 51922d6a..f7bf544b 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -151,6 +151,23 @@ angular.module('zmApp', [ }) +.directive('detectGestures', function($ionicGesture) { + return { + restrict : 'A', + + link : function(scope, elem, attrs) { + var gestureType = attrs.gestureType; + + switch(gestureType) { + case 'pinchin': + $ionicGesture.on('pinchin', scope.reportEvent, elem); + break; + } + + } + }; +}) + .directive('tooltip', function () { return { restrict: 'C', |
