From 4078ab41e8df20db7b526efd507aa98bca3fc716 Mon Sep 17 00:00:00 2001 From: abdurisaq Date: Mon, 21 Oct 2024 21:46:12 -0700 Subject: [PATCH] Fix off by one error in SliderItem --- .../tachiyomi/presentation/core/components/SettingsItems.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt index f9d4923c5..de43e3b25 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt @@ -202,7 +202,7 @@ fun SliderItem( }, modifier = Modifier.weight(1.5f), valueRange = min.toFloat()..max.toFloat(), - steps = max - min, + steps = max - min-1, ) } }