Skip to content

[Text] selectable text gets highlighted while panning inside a ScrollView on Android #3866

@gigobyte

Description

@gigobyte

Description

This problem is not observable when using ScrollView from 'react-native'. It can be reproduced on both the Android Emulator and on real devices.

import { ScrollView, Text } from 'react-native-gesture-handler'

 <ScrollView
  style={{ height: 2000 }}
  contentContainerStyle={{ height: 2000, paddingTop: 200 }}
>
  <Text selectable>
    Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque
    faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi
    pretium tellus duis convallis. Tempus leo eu aenean sed diam urna
    tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas.
    Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut
    hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent
    per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet
    consectetur adipiscing elit. Quisque faucibus ex sapien vitae
  </Text>
</ScrollView>
Screen.Recording.2025-12-08.at.13.56.22.mov

Steps to reproduce

  1. Render a RNGH Text with selectable prop inside a RNGH ScrollView
  2. Quickly swipe across the scroll view
  3. The word where you tapped will be highlighted

A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

Gesture Handler version

2.28.0

React Native version

0.81.4

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions