From fa5d781731a6f17214795eddf8e023eb277ee9be Mon Sep 17 00:00:00 2001 From: Manuel PRADAL Date: Fri, 25 Oct 2013 16:19:11 -0400 Subject: [PATCH] Update swpie.js, in order to access in Angular controllers to complete event object For example, if the angular application needs to access to pageX and pageY attributes of event object. --- src/ngTouch/swipe.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ngTouch/swipe.js b/src/ngTouch/swipe.js index afdf43845906..eff923b7248f 100644 --- a/src/ngTouch/swipe.js +++ b/src/ngTouch/swipe.js @@ -34,7 +34,8 @@ ngTouch.factory('$swipe', [function() { return { x: e.clientX, - y: e.clientY + y: e.clientY, + event: event }; }