Skip to content

Unpredictable slider.targetPage & slider.currentPage #233

@samf3

Description

@samf3

I've read the docs, but there's still no sense in the results I'm seeing.

In onSlideBegin() it looks as if currentPage is 1-based and targetPage is 0-based. I am not using the cloned panel feature.

If I am on slide # 3 (= index 2), say, and I click to go back, then I expect currentPage=2 and targetPage=1. But I get currentPage=3 and targetPage=1. Similarly for other use cases.

Surely I'm doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions