我在 Sencha 中有一个itemsingletap作为听众的列表。当我点击列表中的项目时,itemsingletap会触发。这是预期的行为。但是,当我点击列表中的一个项目,然后快速点击列表中的另一个项目时,itemsingletap不会触发。为什么它不被视为一个itemsingletap?效果如何itemsingletap?我知道它消除了双击,但在它被视为之前还有其他条件itemsingletap吗?
谢谢!
我在 Sencha 中有一个itemsingletap作为听众的列表。当我点击列表中的项目时,itemsingletap会触发。这是预期的行为。但是,当我点击列表中的一个项目,然后快速点击列表中的另一个项目时,itemsingletap不会触发。为什么它不被视为一个itemsingletap?效果如何itemsingletap?我知道它消除了双击,但在它被视为之前还有其他条件itemsingletap吗?
谢谢!
检查这对我有用。
config : {
refs : {
navigationview : 'navigationview',
},
control : {
'productTable dataview[id=productDataView]':{
itemsingletap : 'onProductItemTap'
}
}
},
onProductItemTap: function (list, idx, target, record, evt) {
Ext.Msg.alert('itemsingletap', record.data.Content);
Ext.select('#resultID').elements[0].innerHTML = record.data.Content;
},