aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngTouch/directive/ngSwipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ngTouch/directive/ngSwipe.js')
-rw-r--r--src/ngTouch/directive/ngSwipe.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngTouch/directive/ngSwipe.js b/src/ngTouch/directive/ngSwipe.js
index a5911f9a..7a468374 100644
--- a/src/ngTouch/directive/ngSwipe.js
+++ b/src/ngTouch/directive/ngSwipe.js
@@ -92,18 +92,18 @@ function makeSwipeDirective(directiveName, direction, eventName) {
}
$swipe.bind(element, {
- 'start': function(coords) {
+ 'start': function(coords, event) {
startCoords = coords;
valid = true;
},
- 'cancel': function() {
+ 'cancel': function(event) {
valid = false;
},
- 'end': function(coords) {
+ 'end': function(coords, event) {
if (validSwipe(coords)) {
scope.$apply(function() {
element.triggerHandler(eventName);
- swipeHandler(scope);
+ swipeHandler(scope, {$event: event});
});
}
}