From 1d488da158a74e5c6f023b8da2b4f9247d346823 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Mon, 7 Mar 2016 10:00:54 -0500 Subject: #179 selective dragging, resizing and adjusting working now Former-commit-id: 2dfade9c4f18d034f5729b800bc55108974265a8 --- www/js/app.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'www/js/app.js') 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', -- cgit v1.2.3