@ -44,7 +44,6 @@ import androidx.compose.ui.unit.dp
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.ImmutableList
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.drop
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import kotlinx.coroutines.launch
import tachiyomi.presentation.core.components.material.padding
import tachiyomi.presentation.core.components.material.padding
@ -126,7 +125,6 @@ private fun <T> WheelPicker(
snapshotFlow { lazyListState . firstVisibleItemScrollOffset }
snapshotFlow { lazyListState . firstVisibleItemScrollOffset }
. map { calculateSnappedItemIndex ( lazyListState ) }
. map { calculateSnappedItemIndex ( lazyListState ) }
. distinctUntilChanged ( )
. distinctUntilChanged ( )
. drop ( 1 )
. collectLatest {
. collectLatest {
haptic . performHapticFeedback ( HapticFeedbackType . TextHandleMove )
haptic . performHapticFeedback ( HapticFeedbackType . TextHandleMove )
internalOnSelectionChanged ( it )
internalOnSelectionChanged ( it )