Fix reader slider behavior

master
Koitharu 1 year ago
parent 42b2f21c4d
commit 340994ce77
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -127,9 +127,11 @@ class ReaderActionsView @JvmOverloads constructor(
}
override fun onStartTrackingTouch(slider: Slider) {
if (!isSliderTracking) {
isSliderChanged = false
isSliderTracking = true
}
}
override fun onStopTrackingTouch(slider: Slider) {
isSliderTracking = false

@ -12,6 +12,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.dropWhile
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.joinAll
import kotlinx.coroutines.launch
@ -67,7 +68,7 @@ class SearchViewModel @Inject constructor(
val list: StateFlow<List<ListModel>> = combine(
results,
isLoading,
isLoading.dropWhile { !it },
includeDisabledSources,
) { list, loading, includeDisabled ->
when {

Loading…
Cancel
Save