Skip to content

Wrong calculation in isElementAtTop method causing percentage scrollThreshold to fail in inverse mode #396

Description

@HarryTranCustodio

Hi please take look at line 271 of the index.tsx file

Screenshot 2023-11-02 160034

Shouldn't the correct calculation be (threshold.value / 100) * target.scrollHeight + clientHeight - target.scrollHeight + 1 ?

Because of this line, the scrollThreshold in inverse mode doesn't work when it's set as percentage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions