summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-03-07 10:00:54 -0500
committerpliablepixels <pliablepixels@gmail.com>2016-03-07 10:00:54 -0500
commit1d488da158a74e5c6f023b8da2b4f9247d346823 (patch)
treedc2fcc516db8ea4a75a0e985949f369b6a22cbd4 /www/js/app.js
parent8c6f9dfb14d23970ef715f2f785db8ef90d8ccfe (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.js17
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',