Meteor 使用chriswessels:hammer在滑动过程中移动html元素

Meteor 使用chriswessels:hammer在滑动过程中移动html元素,meteor,hammer.js,Meteor,Hammer.js,此meteor客户端代码使用chriswessels:hammer@4.0.2 ,swipeleft通过调用console.log('moved left')工作,但是如何让html元素实际用手指移动呢?谢谢 Template.swipe.helpers({ “configureHammer”:函数(){ 返回函数(hammer、templateInstance){ 让swipeleft=新锤子。滑动({ 事件:“swipeleft”, 要点:1, 速度:0.2 }); 锤子。添加(swipel

此meteor客户端代码使用
chriswessels:hammer@4.0.2
swipeleft
通过调用
console.log('moved left')
工作,但是如何让html元素实际用手指移动呢?谢谢

Template.swipe.helpers({
“configureHammer”:函数(){
返回函数(hammer、templateInstance){
让swipeleft=新锤子。滑动({
事件:“swipeleft”,
要点:1,
速度:0.2
});
锤子。添加(swipeleft);
回程锤;
}
},
“swipeGestures”:{
“swipeleft.swipe”:函数(事件,templateInstance){
console.log('moved left');
}
}
});