daniel
daniel

Reputation: 35733

Touchmove event in Angular 2

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?

Upvotes: 3

Views: 9902

Answers (1)

El houcine bougarfaoui
El houcine bougarfaoui

Reputation: 37403

yes touchmove is a directive that lets you handle touch events

Demo

use chrome DevTool to simulate touch event enter image description here

Upvotes: 6

Related Questions