PDA

View Full Version : button handler doesn't fire until second tap



andylenny
25 Nov 2011, 11:33 AM
In the Android emulator, I tap on an item on my tabbar - I see it lights up... but then nothing. When I tap anywhere else on the screen, the handler fires and the label dims again.


This behaviour doesn't happen on the actual device I'm testing with (but does happen on some other devices). It also doesn't happen in Chrome -- in both of these cases, a single tap is enough to fire the handler. The code in question looks like this:



MyApp.views.Home = Ext.extend(Ext.Panel, {
fullscreen:true,
html: "",
dockedItems:[
{
xtype:"tabbar",
dock:"bottom",
layout:{
pack:"center"
},
ui:"dark",
items:[{
text:"info",
handler:function(button,event){
console.log("tapped button 1")
}
},
{
text:"Button 2",
handler:function(button,event){
console.log("tapped button 2")
}
},
{
text:"Button 3",
handler:function(button,event){
console.log("tapped button 3")
}
}]
}
],
});
Ext.reg("MyApp.views.Home", MyApp.views.Home);


Can anybody suggest how to fix this? Many thanks.

mitchellsimoens
27 Nov 2011, 7:12 AM
Android performance isn't the best but has been pretty much solved in ST2.

andylenny
23 Feb 2012, 1:00 AM
Converting my app to ST2 is not feasible right now (dev build time/costs etc.).

Has anyone else had this problem?

Are there any work arounds?

The second time the button is used it works perfectly; can I "jump start" each button the first time they are used?

andylenny
4 Mar 2012, 2:08 AM
bump