Fix reader slider behavior

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

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

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

Loading…
Cancel
Save