Touchmove事件未作为Backbone事件触发

时间:2014-05-13 15:39:04

标签: javascript backbone.js touch

我使用backbone.js,我的事件设置如下:

events: {
     'touchstart button#target' : 'handleTouchstart',
     'touchmove button#target' : 'handleTouchmove'
},

handleTouchstart: function() {
     console.log('Touched');
},

handleTouchmove: function() {
     console.log('Moving'); // this doesn't fire
}

当我触摸按钮时,该方法被触发并触摸'打印到控制台。但触摸移动方法不会被激发。它发生在文档的多个位置。 Backbone不会确认touchmove事件吗?

0 个答案:

没有答案