-
1 Nov 2011 12:45 AM #1
No callback for Ext.Anim ??
No callback for Ext.Anim ??
Can it really be true that there is no callback available for animations in Sencha Touch 2?
'before' is written in the console, but 'after' is not. I'm aware that the property after does not appear in the documentation, but i was hoping it was a mistake..
Code:Ext.Anim.run(Ext.get("infoBar"),'slide',{direction: 'down',duration: 200, before: function(){console.log("before");},after: function(){console.log("after");}});
-
1 Nov 2011 7:55 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
Looking at the Ext.Anim source, it is listening for the webkitTransitionEnd event to fire the after function.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Nov 2011 12:35 PM #3
Hey Mitchell
The event doesn't seem to be called in neither
- Safari version 5.1.1 (7534.51.22)
- Google Crome 15.0.874.106
The same problem seems to occur in Sencha Touch 1.0
http://www.sencha.com/forum/showthre...ot-always-fire
Is this a bug? and is there a way to fix it?
-
1 Nov 2011 12:50 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
I've had after firing on ST 1.1.0 I know for a fact but I am moving this to the bugs forum and pushing to our bug tracker.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
21 Jan 2012 3:03 PM #5
This class has not been touched in ST2 yet as the way animations work is changing.
In PR3, you can use something something like this:
However, chances are, this WILL change before the final release.Code:Ext.Animator.run({ element : panel.element, xclass : 'Ext.fx.animation.SlideIn', direction: 'left', duration : 500, onEnd: function() { console.log('onEnd'); } });
Edit:
FYI, i've fixed your issue anyway for the next release.Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-956
in
2.0.


Reply With Quote