Fix automatic scroll speed
This commit is contained in:
@@ -17,8 +17,8 @@ import org.koitharu.kotatsu.core.prefs.AppSettings
|
|||||||
import org.koitharu.kotatsu.core.prefs.observeAsFlow
|
import org.koitharu.kotatsu.core.prefs.observeAsFlow
|
||||||
import kotlin.math.roundToLong
|
import kotlin.math.roundToLong
|
||||||
|
|
||||||
private const val MAX_DELAY = 60L
|
private const val MAX_DELAY = 20L
|
||||||
private const val MAX_SWITCH_DELAY = 12_000L
|
private const val MAX_SWITCH_DELAY = 10_000L
|
||||||
private const val INTERACTION_SKIP_MS = 1_000L
|
private const val INTERACTION_SKIP_MS = 1_000L
|
||||||
|
|
||||||
class ScrollTimer @AssistedInject constructor(
|
class ScrollTimer @AssistedInject constructor(
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
android:contentDescription="@string/automatic_scroll"
|
android:contentDescription="@string/automatic_scroll"
|
||||||
android:labelFor="@id/switch_scroll_timer"
|
android:labelFor="@id/switch_scroll_timer"
|
||||||
android:valueFrom="0.2"
|
android:valueFrom="0.2"
|
||||||
android:valueTo="1"
|
android:valueTo="0.9"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:labelBehavior="gone"
|
app:labelBehavior="gone"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|||||||
Reference in New Issue
Block a user