Fix translationX for bottom tab

This commit is contained in:
Kyant0 committed 2025-09-26 18:08:19 +08:00
1 parent 001ef9f64d
commit 9a3a2294da
1 file changed
+2 -2
@@ -335,7 +335,7 @@ half4 main(float2 coord) {
}
}
.graphicsLayer {
translationX = tabOffsetAnimation.value.fastCoerceIn(0f, size.width * 3)
translationX = tabOffsetAnimation.value.fastCoerceIn(0f, size.width * (tabsCount - 1))
tabLayerBlock()
shape = ContinuousCapsule
clip = true
@@ -403,7 +403,7 @@ half4 main(float2 coord) {
}
}
.graphicsLayer {
translationX = tabOffsetAnimation.value.fastCoerceIn(0f, size.width * 3)
translationX = tabOffsetAnimation.value.fastCoerceIn(0f, size.width * (tabsCount - 1))
}
.pointerInput(Unit) {
val velocityTracker = VelocityTracker()