KimH
04-27-2007, 04:08 AM
I have tried the following on a div:
Ext.get('MyDiv').on('click', function() {
Ext.get('MyDiv').stopFx();
Ext.get('MyDiv').shift({ y:100, duration:.4 });
});
Ext.get('MyDiv').on('mouseout', function() {
Ext.get('MyDiv').stopFx();
Ext.get('MyDiv').shift({ y:200, duration:1 });
});
When I click on the div it moves to a predefined position. However, if the cursor leaves the div before it gets to this position it is not stopped and the new FX applied. The new FX does not happen until the first FX is finished. Is this a bug or should I do it differently?
Ext.get('MyDiv').on('click', function() {
Ext.get('MyDiv').stopFx();
Ext.get('MyDiv').shift({ y:100, duration:.4 });
});
Ext.get('MyDiv').on('mouseout', function() {
Ext.get('MyDiv').stopFx();
Ext.get('MyDiv').shift({ y:200, duration:1 });
});
When I click on the div it moves to a predefined position. However, if the cursor leaves the div before it gets to this position it is not stopped and the new FX applied. The new FX does not happen until the first FX is finished. Is this a bug or should I do it differently?