Fix reader slider behavior

This commit is contained in:
Koitharu
2025-04-03 13:59:26 +03:00
parent 42b2f21c4d
commit 340994ce77
2 changed files with 6 additions and 3 deletions

View File

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

View File

@@ -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 {