Results 1 to 3 of 3

Thread: Scrolleable Carousel does generate an error

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    98

    Default Scrolleable Carousel does generate an error

    REQUIRED INFORMATIONExt version tested:
    Sencha Touch 2.2.1

    Browser versions tested against:
    Latest Chrome (29) and Safari 6.0.5.

    DOCTYPE tested against:
    Generated by Sencha CMD, so it's "<!DOCTYPE HTML>"

    Description:
    Creating a carousel which is scrollable, is impossible.

    Steps to reproduce the problem:
    Create a new carousel with a few items in it, add a scroller. Of course, the scroller shouldn't be in the same direction as the carousel itself.

    The result that was expected:
    If you swipe in the direction of the carousel, the next or previous page should be openend. If you scroll in the direction of the scroller, the other content of the panel should be visible.

    The result that occurs instead:
    An error on the console.
    Uncaught TypeError: Cannot call method 'stopAnimation' of undefined

    Test Case:
    Code:
    Ext.Loader.setConfig({
        enabled : true
    });
    
    
    Ext.application({
        name : ('SF' || 'SenchaFiddle'),
        
        launch : function() {
            Ext.create('Ext.Carousel', {
                fullscreen: true,
                scrollable: {
                    direction: 'vertical',
                    directionLock: true
                },
                defaults: {
                    styleHtmlContent: true
                },
                
                items: [
                    {
                        html : 'Item 1',
                        style: 'background-color: #5E99CC'
                    },
                    {
                        html : 'Item 2', 
                        style: 'background-color: #759E60'
                    },
                    {
                        html : 'Item 3'
                    }
                ]
            });
        }
    });

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    98

    Default

    Ah nevermind. Of course it's not working like this. The scoller should be put on the items, not on the carousel itself.

    Oops! This case can be archived.

  3. #3
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

    No problem
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •