Highlight swipe and click Angular

I use ng-click to display the details of an item in a list, and I also attach the jQuery mobile swipe event to the list item to show the delete button when the user iterates to the left. The problem is that when I scroll the element, it not only generates a swipe event, but also a click event. Therefore, when I want to delete an item, it shows a delete button and opens a view of the details.

What can I do about this? It would be great to have something like ng-swipe.

+7
source share
1 answer

The most recent unstable assemblies with angular (1.1.4+) include both the ngSwipeLeft directive and ngSwipeRight directive. You should take care of the link to the angular -mobile.js library.

https://github.com/angular/angular.js/blob/master/src/ngMobile/directive/ngSwipe.js

+3
source

All Articles