nstudio / nstudio/nativescript-plugins
[Carousel][iOS] Changing the slideIndex changes the indicator position, but not the visible slide
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 55
- Forks
- 42
- Avg merge
- 49m
- Merged PRs (30d)
- 1
Description
Hi,
I've noticed that setting the selected page programmatically changes the indicator, but not the visible slide.
Example (Vue):
<Carousel :selectedPage="slideIndex">
<CarouselItem></CarouselItem>
<CarouselItem></CarouselItem>
</Carousel>
export default {
data() {
return {
slideIndex: 0
}
},
mounted() {
this.slideIndex = 1;
}
}
This will make the indicator active at the seconds position, but the first slide is still visible. On Android it works as expected.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Vue example with the Carousel and compare the iOS behavior with Android, then trace selectedPage through the iOS Carousel implementation. Done means changing slideIndex updates both the active indicator and the visible slide on iOS without regressing the Android behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100