litho icon indicating copy to clipboard operation
litho copied to clipboard

Scroll doesn't work while transition animation is in progress

Open TimurKhairnasov opened this issue 4 years ago • 1 comments

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())

TimurKhairnasov avatar May 07 '20 13:05 TimurKhairnasov

Hi @TimurKhairnasov! Sorry, for late reply. Can you provide a sample app with repro, please? This plain text is not easy to comprehend, especially without formatting. But having the project to easily import and reproduce the issue is the major help to easily jump into debugging and then fixing it :)

colriot avatar Jun 02 '20 14:06 colriot