Skip to content

Commit 1074b84

Browse files
committed
library: Make TabRow support OverScroll
1 parent 6b004ab commit 1074b84

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import androidx.compose.ui.unit.times
2727
import top.yukonga.miuix.kmp.theme.MiuixTheme
2828
import top.yukonga.miuix.kmp.utils.SmoothRoundedCornerShape
2929
import top.yukonga.miuix.kmp.utils.getWindowSize
30+
import top.yukonga.miuix.kmp.utils.overScrollHorizontal
3031

3132

3233
/**
@@ -67,7 +68,8 @@ fun TabRow(
6768
LazyRow(
6869
state = listState,
6970
modifier = modifier
70-
.fillMaxWidth().height(42.dp),
71+
.fillMaxWidth().height(42.dp)
72+
.overScrollHorizontal(),
7173
verticalAlignment = Alignment.CenterVertically,
7274
horizontalArrangement = Arrangement.spacedBy(9.dp)
7375
) {

0 commit comments

Comments
 (0)