3

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 Answer 1

6

yes touchmove is a directive that lets you handle touch events

Demo

use chrome DevTool to simulate touch event enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

can I listen this as global event? e.g. with document.addEventListener

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.