Skip to content

onProgressChange & onSnapToItem bug when only 2 image #74

@hotaryuzaki

Description

@hotaryuzaki

onProgressChange & onSnapToItem bug when only 2 image, index item slide from 0-3 (detect as 4 images)
you can reproduce set only 2 images and console log onSnapToItem or onProgressChange absoluteProgress
onSnapToItem={(index) => console.log(index)}
onProgressChange={(offsetProgress, absoluteProgress) => console.log(absoluteProgress)}

this makes my slider indicator not works as expected when index is 3.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions