Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startAtPage issue #46

Open
gicosens opened this issue Jul 30, 2012 · 1 comment
Open

startAtPage issue #46

gicosens opened this issue Jul 30, 2012 · 1 comment

Comments

@gicosens
Copy link

When I use the startAtPage option, the correct screen shows in the carousel, but the navigation assumes that I am displaying #screen01.

I have 6 pages (#screen01-06) . If I set startAtPage to be 4, #screen04 will show but if I click on next, it then shows #screen02 instead of #screen05. I also see the bullet marker as on for #screen01.

Has anybody else experienced these issues?

@kdreamer
Copy link

kdreamer commented Oct 1, 2014

I've fixed this bug by changing the pagaIndex and the oldPageIndex to the options.startAtPage

_createDataObject: function() {
var $root = $( this.element );

        $root.data("data",
            {
                paths: [],
                pathsLen: 0,
                pages: [],
                lastPage: [],
                oldPageIndex: this.options.startAtPage,
                pageIndex: this.options.startAtPage,
                navigation: {},
                animated: false,
                appended: false,
                hoveredOver: false
            }
        );
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants