Skip to content

Android: Horizontal FlatList inside Vertical FlatList causes PagerView to swipe pages on fast horizontal scroll #1049

@mohamadmek

Description

@mohamadmek

Hello,

On Android only, when using react-native-pager-view with a vertical FlatList, which itself contains a horizontal FlatList, fast (and sometimes normal) horizontal scrolling inside the inner FlatList causes the PagerView to swipe to the next/previous page unexpectedly.

This behavior does not occur on iOS.

Platform: Android
Library: react-native-pager-view (6.8.1)
React Native version: 0.74.3
Devices tested: Physical devices + emulator

Expected Behavior

The horizontal FlatList should fully handle horizontal scroll gestures, and PagerView should not change pages while interacting with nested horizontal content.

Actual Behavior

PagerView intercepts the horizontal gesture and swipes to the next/previous page, even though the user is interacting with the inner horizontal FlatList.

horizontalissue480.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions