Skip to content

Conversation

@okwasniewski
Copy link
Member

@okwasniewski okwasniewski commented Jul 31, 2025

Summary

This PR fixes pager being moved by nested scroll views.

When embedding a horizontal scroll view into a (horizontal) pager view dragging on the scroll view can cause pager's scroll view to move. Before the onScroll event wasn't setting destination index in that case which made it report incorrect position.

Before

ScreenRecording_07-31-2025.6-06-51.PM_1.MP4

Pay close attention to this progress bar 👆

After

ScreenRecording_07-31-2025.6-07-42.PM_1.MP4

Test Plan

Check new horizontal scroll example

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I updated the typed files (TS and Flow)

@okwasniewski okwasniewski force-pushed the fix/onscroll-nested-scrollviews branch from 09f3c01 to eb928b4 Compare August 1, 2025 09:35
@okwasniewski okwasniewski merged commit 380a8e3 into master Aug 1, 2025
2 checks passed
@okwasniewski okwasniewski deleted the fix/onscroll-nested-scrollviews branch August 1, 2025 10:14
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