Skip to content

[MOO-1887]: Fix initial slide positioning in IntroScreen widget [MX 11] #282

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

UrazAkgultan
Copy link
Collaborator

Checklist

  • Contains unit tests ✅
  • Contains breaking changes ❌
  • Compatible with: MX 11
  • Did you update version and changelog? ✅
  • PR title properly formatted ([XX-000]: description)? ✅
  • Works in Android ✅
  • Works in iOS ✅
  • Works in Tablet ✅

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other (describe)

What is the purpose of this PR?

Currently, when activeSlide is set to a non-zero value, the IntroScreen always opens on the first slide. This happens because the effect that calls scrollToOffset runs too late (or not at all) and its dependency array doesn’t include the slide value/status, so the FlatList never scrolls to the desired index on mount.

@UrazAkgultan UrazAkgultan requested a review from a team as a code owner July 3, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants