2017-11-25 122 views
0

如何在Angular 2+(非手势)中使用触摸事件,如touchmove?应该有一个指令Angular 2中的Touchmove事件

(touchmove)="myMove()"

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

回答

1

touchmove是一个指令,可以让你处理触摸事件

Demo

使用铬DevTool来模拟触摸事件 enter image description here