I want to detect when user swipes with his finger or with the mouse pointer over a div.
<ul>
<li ng-repeat="x in names">
<div ngTouchOrMouseOver="saveName(x) ">{{ x }}</div>
</li>
</ul>
Is it possible to implement something like ngTouchOrMouseOver in angular? So when I move my finger over the screen and it happens to be within bounds of a div, I want to execute some code.
Edit:
Found this: How to Capture Touch Events with Angular Directive
Apparantly it works for mousemove but not for touchmove. Nothing new in the three years after the question was asked?