2017-11-25 70 views
0

如何在Angular 2+(非手勢)中使用觸摸事件,如touchmove?應該有一個指令Angular 2中的Touchmove事件

(touchmove)="myMove()"

Hammer.js支持手勢但不支持原始事件?

回答

1

touchmove是一個指令,可以讓你處理觸摸事件

Demo

使用鉻DevTool來模擬觸摸事件 enter image description here