Skip to content

Commit 53d542b

Browse files
committed
library: TopAppBar: Fix velocity return value
* When the animation operation is reversed
1 parent 8a08ebc commit 53d542b

File tree

1 file changed

+1
-1
lines changed
  • miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic

1 file changed

+1
-1
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/TopAppBar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ private suspend fun settleAppBar(
516516
) {
517517
state.heightOffset = value
518518
}
519+
return Velocity(0f, velocity)
519520
}
520521
}
521-
522522
return Velocity(0f, velocity - remainingVelocity)
523523
}
524524

0 commit comments

Comments
 (0)