Skip to content

ScrollView prop autoScroll: detectEnd race condition #659

@mbohal

Description

@mbohal

Originally reported in #501

Steps to reproduce:

  1. in the documentation go to the Auto Scrolling section
  2. select the option when end is detected
  3. click on the Add text button to the point where the element scrolls
  4. start clicking on Add text button as fast as you can several times
  5. after a while, auto scroll stops working
Screencast.From.2025-06-30.09-59-32.mp4

Relevant comment: #501 (comment)

I think the issue lies in a race condition in the else if (!isScrolledAtEnd || isAutoScrollInProgress) condition, but I couldn't think of a satisfactory fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🔖 To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions