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? JSAN - Task.ExtJS.Debug.Core:: This enables collection of elements that are not orphans // directly, but somewhere up the line they . 0 : width; } return width; }, // private ==> used by Fx adjustHeight .. fxQueue[0]; }, stopFx : function(finish){ var me = this; if(me. .. _delay){ this.cancel(); } _delay = delay; _time = new Date(). http://www.openjsan.org/doc/s/sa/samuraijack/Task/ExtJS/3.02/lib/Task/ExtJS/Debug/Core.htmlHOME | Show File - ext-all-debug.js:: 1312, var returnValue, v, cancel;. 1313, var obj = this; 4103, Ext.Fx = {. 4104. 4105, slideIn : function(anchor, o){. 4106, var el = this.getFxEl(); 9745, stopFx: true,. 9746, callback: this.afterRepair,. 9747, scope: this 11300, throw {message: "JsonReader.read: Json object not found"}; http://svn.wikidot.org/svn/goto.svn?path=/wikidot2/trunk/web/common/lib/extjs/ext-all-debug.js&revision=5&name=wikidotorgHOME |
Stopping of animations is an asyncronous operation. Is it actually continuing to play the animation or skipping to the last frame? Can you try it with a long duration?
Well... "the default"... which is YUI ;-) Where do i download full pc games.? - Where do i download full pc :: if ur game is not in the list demand it in chat box it'll be POSTED WITHIN when loading scripts updatemanager · fx stopfx not canceling previous fx es http://enart.gigj.com/whe/where-do-i-download-full-pc-games-690115.htmHOME |
I know that the JQuery-Adapter doesn't support animation stopping if I'm right (although the YUI adapter does).
So, it would be helpfull if you can say which adapter you use.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks |