scrolling bug fix

This commit is contained in:
JUNGGWAN KIM 2026-05-08 16:03:54 +09:00
parent acd1b13760
commit 93907c2dac

View File

@ -116,7 +116,7 @@ fun TradingDecisionLog() {
onClick = { onClick = {
coroutineScope.launch { coroutineScope.launch {
// index 0으로 부드럽게 스크롤 (즉시 이동은 scrollToItem(0)) // index 0으로 부드럽게 스크롤 (즉시 이동은 scrollToItem(0))
listState.animateScrollToItem(filteredLogs.size - 1) listState.animateScrollToItem(if (filteredLogs.size - 1 >= 0) filteredLogs.size - 1 else 0)
} }
} }
) { Text("AI 자동매매 실시간 로그", style = MaterialTheme.typography.h6) } ) { Text("AI 자동매매 실시간 로그", style = MaterialTheme.typography.h6) }