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