Skip to content

Conversation

@ZivSa1
Copy link
Collaborator

@ZivSa1 ZivSa1 commented Dec 10, 2025

Description

On Android, the scrollEventThrottle of 200ms was too slow to reliably detect when the scroll landed on a cloned page during fast swipes. This caused the carousel to get stuck on clone pages instead of jumping back to the real page, breaking the infinite loop behavior.
The fix reduces scrollEventThrottle to 16ms on Android to ensure the onScroll handler catches the out-of-bounds position and triggers the loop jump-back.

Changelog

scrollEventThrottle={Constants.isAndroid ? 16 : 200}

Additional info

Ticket 4885

showsVerticalScrollIndicator={false}
decelerationRate="fast"
scrollEventThrottle={200}
scrollEventThrottle={Constants.isAndroid ? 16 : 200} // Android needs 16ms throttle to reliably catch loop boundary during fast swipes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please check with the user if this is a regression from RN77? If yes, please start the comment with // TODO: RN 77

I would also add (Ticket 4885) at the end

Is this easy to reproduce in the public demo?

@M-i-k-e-l M-i-k-e-l assigned ZivSa1 and unassigned adids1221 and M-i-k-e-l Dec 11, 2025
@ZivSa1 ZivSa1 changed the title reduced scrollEventThrottle on android reduced scrollEventThrottle on android (Ticket 4885) Dec 11, 2025
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

Successfully merging this pull request may close these issues.

4 participants