我使用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事件吗?