1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    16
    Vote Rating
    1
    trkaky is on a distinguished road

      0  

    Default Unanswered: Scrollable area in carousel prevents navigating to next page

    Unanswered: Scrollable area in carousel prevents navigating to next page


    Hi,

    I have a scrollable image within a carousel page, considering their scroll directions are same both vertical or both horizontal, I cant swipe to next carousel page and navigate through the image at same time.

    If I set directionLock true, then it will overwrite carousel touch events and scroll through the image but will not give the chance to swipe to next carousel page. If I set directionLock false, then it will swipe to next carousel page but not scroll through the image.

    Been working on this for long, searched over internet and Sencha forum but Im not getting anywhere.
    Also tried to set directionLock true/false dynamically by listening scrollend event and detecting where the end of scrollable area is reached, then set the directionLock false but then ended up with scrolling issue again when I start scrolling to the other direction, it just navigates to previous carousel page instead of scrolling backwards to the start of image.

    Here is the sample code, would be much appreciated if anyone can provide a solution.
    many thanks.

    Code:
    Ext.Viewport.add(Ext.create('Ext.Carousel', {
        direction: 'horizontal',
        indicator: false,
        items: [
            {
                html : 'Item 1',
                style: 'background-color: #759E60'
            },
            {
                xtype: 'panel',
                scrollable: {direction: 'horizontal', directionLock: true},
                items:[{
                    xtype: 'image',
                    src: 'http://images2.layoutsparks.com/1/235919/walle-galaxy-sky-image.jpg',
                    width: 2560,
                    height: 1600
                }]
            },
            {
                html : 'Item 3'
            }
        ]
    }));

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    16
    Vote Rating
    1
    trkaky is on a distinguished road

      0  

    Default


    any thoughts?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar