Skip to content

Commit ed259ff

Browse files
committed
feat(ui): Enhance About screen scroll animation speed and smoothness
Adjusted the scrolling text animation on the About screen to be noticeably faster, responding to user feedback requesting increased scroll speed. Further refined animation parameters to ensure the accelerated scrolling maintains a smooth and pleasant visual experience.
1 parent be2800e commit ed259ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/artemzarubin/weatherml/ui/AboutScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fun AboutScreen(
209209
animatableYOffset.animateTo(
210210
targetValue = targetY,
211211
animationSpec = tween(
212-
durationMillis = ((initialY - targetY) / (density.run { 0.4.dp.toPx() }) * 16).toInt(), // Рассчитываем длительность на основе желаемой скорости
212+
durationMillis = ((initialY - targetY) / (density.run { 0.6.dp.toPx() }) * 15).toInt(), // Рассчитываем длительность на основе желаемой скорости
213213
// или просто фиксированная длительность: durationMillis = 15000, // например, 15 секунд
214214
easing = LinearEasing // Линейное изменение для равномерной прокрутки
215215
)

0 commit comments

Comments
 (0)