We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3399d6a commit 8a28d1dCopy full SHA for 8a28d1d
presentation/core/src/main/java/yokai/presentation/core/Scrollbar.kt
@@ -166,12 +166,8 @@ private fun Modifier.drawScrollbar(
166
}
167
val nestedScrollConnection = remember(orientation, scrolled) {
168
object : NestedScrollConnection {
169
- override fun onPostScroll(
170
- consumed: Offset,
171
- available: Offset,
172
- source: NestedScrollSource,
173
- ): Offset {
174
- val delta = if (orientation == Orientation.Horizontal) consumed.x else consumed.y
+ override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset {
+ val delta = if (orientation == Orientation.Horizontal) available.x else available.y
175
if (delta != 0f) scrolled.tryEmit(Unit)
176
return Offset.Zero
177
0 commit comments