Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Touchmove event in Angular 2

Tags:

angular

How can I use touch events such as touchmove in Angular 2+ (not gestures)? There sould be a directive

(touchmove)="myMove()"?

Hammer.js supports gestures but not the raw events?

like image 688
daniel Avatar asked Mar 14 '26 20:03

daniel


1 Answers

yes touchmove is a directive that lets you handle touch events

Demo

use chrome DevTool to simulate touch event enter image description here

like image 96
El houcine bougarfaoui Avatar answered Mar 17 '26 11:03

El houcine bougarfaoui