Fixed
Status Update
Comments
nj...@google.com <nj...@google.com>
ap...@google.com <ap...@google.com> #2
Describing use case. Currently I have a following layout:
Box {
val state = rememberLazyListState()
LazyColumn(state) {
...
}
ThreeButtons(state)
}
In this example overscroll effect applied only to LazyColumn
, and because ThreeButtons
are outside of LazyColumn
, overscroll effect isn't applied to it. But ThreeButtons
are listening to the list scroll, and visually it looks like buttons are within the list. Video, attached to original description of the isue shows how it looks like.
But if I hoist overScrollController outside of LazyColumn
, I can achieve overscroll effect to be applied to buttons as well:
val overScrollController = ScrollableDefaults.overScrollController()
Box(Modifier.overScroll(overScrollController)) {
CompositionLocalProvider(LocalOverScrollConfiguration provides null) {
LazyColumn(state, overScrollController = overScrollController) {
...
}
}
ThreeButtons(state)
}
Description
Jetpack Compose release version: 1.0.0-alpha05
From discussion in this slack thread .
In and have method
Modifier.drawLayer()
there arerotationX
androtationY
parameters, which are making kind of 3D rotation. But these rotations look very distorted, because camera distance is too small, and there's no way to control it. BothRenderNode
View
setCameraDistance()
, which can be used to control camera distance from Compose.So I think there should be either good defaults, so that
rotationX
androtationY
would not look that distorted, or there should be modifier parameter to control camera distance.