-
29 Sep 2012 10:47 AM #1
Unanswered: Carousel scrolling horizontal with lists scolling vertical Issue
Unanswered: Carousel scrolling horizontal with lists scolling vertical Issue
I have a carousel that moves horizontally with a few cards. The cards are made of lists which move vertically. The problem I'm having is that when I move horizontally from one card to another, I can still move the list vertically that I was previously on. Is there a way to lock the list from moving vertically once I start moving horizontally on the carousel?
I was able to lock the list from moving horizontally with the direction: 'vertical', directionLock: true, setting in each list. However, I haven't been able to figure how to lock the list in place once I move through the carousel horizontally. I tried putting the following scrollable code in the carousel, but it strangely prevented me from moving horizontally even though I put horizontal as the direction.
scrollable: {
direction: 'horizontal',
directionLock: true
}
Any help will be greatly appreciated. Thanks.
-
29 Sep 2012 2:52 PM #2
Do not set carousel's scrollable config.
Just set directionLock:true as config.
Code:{ //other carousel config here directionLock:true }I write English by translator.
-
30 Sep 2012 9:26 AM #3
Thanks Haduki, but it don't work. If you look on Sencha docs, directionLock is not available for the carousel component.
-
1 Oct 2012 5:44 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
Did you put this on the list?
Code:scrollable: { direction: 'vertical', directionLock: true }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 Oct 2012 6:16 AM #5
Yes, each list has scrollable with direction and directionLock attributes.


Reply With Quote