Skip to content

Conversation

@lsdimagine
Copy link
Collaborator

Please provide enough information so that others can review your pull request:

Motivation

When scrollable is locked, we have no way to know the lock position as BottomSheet doesn't expose that value. This PR adds a new internal state lockableScrollableContentOffsetY:

  1. When scrollable is locked, it will be the value of lock position.
  2. When scrollable is not locked, it will be same as scrollable content offset.

@lsdimagine lsdimagine merged commit 859ab16 into discord-fork-4.5.1 Dec 13, 2023
lsdimagine added a commit that referenced this pull request Dec 13, 2023
lsdimagine added a commit that referenced this pull request Dec 13, 2023
* Revert "Add lockableScrollableContentOffsetY which does not change when scrollable is locked (#14)"

This reverts commit 859ab16.

* Move lockableScrollableContentOffsetY into scrollable props
@yayvery yayvery deleted the lsdimagine/add_lockable_content_offset branch February 24, 2024 19:14
yayvery pushed a commit that referenced this pull request Feb 24, 2024
yayvery pushed a commit that referenced this pull request Feb 24, 2024
* Revert "Add lockableScrollableContentOffsetY which does not change when scrollable is locked (#14)"

This reverts commit 859ab16.

* Move lockableScrollableContentOffsetY into scrollable props
yayvery pushed a commit that referenced this pull request Mar 13, 2024
ghost pushed a commit that referenced this pull request Jan 7, 2025
ghost pushed a commit that referenced this pull request Jan 7, 2025
* Revert "Add lockableScrollableContentOffsetY which does not change when scrollable is locked (#14)"

This reverts commit 859ab16.

* Move lockableScrollableContentOffsetY into scrollable props
ghost pushed a commit that referenced this pull request Jun 11, 2025
ghost pushed a commit that referenced this pull request Jun 11, 2025
* Revert "Add lockableScrollableContentOffsetY which does not change when scrollable is locked (#14)"

This reverts commit 859ab16.

* Move lockableScrollableContentOffsetY into scrollable props
ghost pushed a commit that referenced this pull request Jun 11, 2025
* Revert "Add lockableScrollableContentOffsetY which does not change when scrollable is locked (#14)"

This reverts commit 859ab16.

* Move lockableScrollableContentOffsetY into scrollable props
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.

3 participants