-
2 Jan 2013 11:42 AM #1
Unanswered: LoadMask and carousel swipe issue
Unanswered: LoadMask and carousel swipe issue
Hi,
I want to add a LoadMask to the Viewport after the swipe event of the carousel. To do this, I am attaching to the dragend event of the carousel element and adding the LoadMask to the Viewport.
However, when doing this the page transition is not smooth. Probably, because the LoadMask is blocking the UI transition.
Is there any workaround this ?
thanks,
-
4 Jan 2013 5:38 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
Wait for the animation to complete before showing the load mask.
in someFunction you can do the loadmask showing as the activeitemchange with onAfter should happen after the animation has completed.Code:carousel.onAfter('activeitemchange', someFunction, carousel);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.
-
4 Jan 2013 5:56 AM #3
Hi, thanks for the reply.
That's what I am doing right now. I wanted to know if I could add the LoadMask at the end of the swipe event and animation would continue to happen in the background.
Thanks,
-
4 Jan 2013 6:13 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
You can but the animation running smoothly will vary greatly on each device especially on all the android devices.
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.
-
4 Jan 2013 6:30 AM #5
Just a doubt. Is the animation for both the carousel transition and the loading mask done using CSS or javascript ?
Thanks
-
4 Jan 2013 7:06 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
Animations are all done with CSS
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.
-
22 Jan 2013 3:38 PM #7
The performance issue is showing in my iPad 3 with iOS 6.0.
I think this should not happen with this kind of hardware.
Thanks,


Reply With Quote