diff options
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', |
