You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Hi there!, in the docs it says that Event object should be available as $event on swipe directives (http://docs.angularjs.org/api/ngTouch.directive:ngSwipeLeft), this is not working. It only works for ng-click. Here is an example in Plunker:
I'm trying to access $event in the swipe directive to use $event.stopPropagation() because sometimes (not always) I'm getting a click event after the swipe event. You should also see this behavior in the example... (maybe is this another bug?). Greets!
The text was updated successfully, but these errors were encountered:
The swipe handler is triggered on mouseup or touchend, once the swipe has finished. It's possible to add $event back to the ng-swipe scope as per ng-click (it will be a mouseup or a touchend) but then using stopPropagation on it won't have the effect you desire because a separate click event is still being generated.
Existing documentation implies that an Event object should be available
as `$event` on swipe directives, which previously was only working for
`ng-click`.
Closesangular#4071Closesangular#4321
jamesdaily
pushed a commit
to jamesdaily/angular.js
that referenced
this issue
Jan 27, 2014
Existing documentation implies that an Event object should be available
as `$event` on swipe directives, which previously was only working for
`ng-click`.
Closesangular#4071Closesangular#4321
Hi there!, in the docs it says that Event object should be available as $event on swipe directives (http://docs.angularjs.org/api/ngTouch.directive:ngSwipeLeft), this is not working. It only works for ng-click. Here is an example in Plunker:
http://plnkr.co/edit/I0DvVA?p=preview
I'm trying to access $event in the swipe directive to use $event.stopPropagation() because sometimes (not always) I'm getting a click event after the swipe event. You should also see this behavior in the example... (maybe is this another bug?). Greets!
The text was updated successfully, but these errors were encountered: