Touchmove event in Angular 2

Viewed 8932

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?

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

Related