facebook / facebook/litho

Scroll doesn't work while transition animation is in progress

Open
#658 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
7.8k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

- [+] I have searched [existing issues](https://github.com/facebook/litho/issues) and this is not a duplicate

## Version
0.35.0

## Issues and Steps to Reproduce
Reversed RecyclerCollectionComponent blocks scroll during changing size of LithoView with transition animation.
If reverseLayout is false everything works fine

## Expected Behavior
i expected that scroll of LithoView would be enabled during transition animation (changing size) with reverse layout like with regular layout😊

## Code
**RecyclerCollectionComponent something like this:**
RecyclerCollectionComponent.create(sectionContext)
.recyclerConfiguration(recyclerConfiguration)
.clipToPadding(false)
.disablePTR(true)
.section(Section.create(sectionContext)
.data(data)
)
.build()

val recyclerConfiguration = ListRecyclerConfiguration.create()
.orientation(androidx.recyclerview.widget.LinearLayoutManager.VERTICAL)
.reverseLayout(true)
.build()

**Changing size by changing constraint connections in layout. Something like that:**
val set = ConstraintSet()
set.apply {
clone(main_layout)
connect(litho_fragment.id, ConstraintSet.TOP, appbar.id,
ConstraintSet.BOTTOM)
applyTo(main_layout)
}

**litho_fragment is the fragment with LithoView in it.**

**Transition something like this:**
TransitionManager.go(Scene(main_layout), ChangeBounds())

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.