Home
last modified time | relevance | path

Searched refs:adjustedDistancePulled (Results 1 – 3 of 3) sorted by relevance

/compose/material/material/src/commonMain/kotlin/androidx/compose/material/pullrefresh/
DPullRefreshState.kt117 get() = adjustedDistancePulled / threshold
128 private val adjustedDistancePulled by derivedStateOf { distancePulled * DragMultiplier } in <lambda>() constant
149 if (adjustedDistancePulled > threshold) { in onRelease()
206 adjustedDistancePulled <= threshold -> adjustedDistancePulled in calculateIndicatorPosition()
/compose/material/material/src/androidInstrumentedTest/kotlin/androidx/compose/material/pullrefresh/
DPullRefreshStateTest.kt151 val adjustedDistancePulled = threshold / 2 // Account for PullMultiplier. in progressAndPosition_scaleCorrectly_untilThreshold() constant
153 assertThat(state.position).isEqualTo(adjustedDistancePulled) in progressAndPosition_scaleCorrectly_untilThreshold()
160 val adjustedDistancePulled = (2 * threshold + 1f) / 2 // Account for PullMultiplier. in progressAndPosition_scaleCorrectly_untilThreshold() constant
161 assertThat(state.progress).isEqualTo(adjustedDistancePulled / threshold) in progressAndPosition_scaleCorrectly_untilThreshold()
163 .isEqualTo(calculateIndicatorPosition(adjustedDistancePulled, threshold)) in progressAndPosition_scaleCorrectly_untilThreshold()
206 val adjustedDistancePulled = 3 * threshold / 2 // Account for PullMultiplier. in progressAndPosition_scaleCorrectly_beyondThreshold() constant
209 .isEqualTo(calculateIndicatorPosition(adjustedDistancePulled, threshold)) in progressAndPosition_scaleCorrectly_beyondThreshold()
281 val adjustedDistancePulled = threshold / 2 // Account for PullMultiplier. in pullInterrupted() constant
283 assertThat(state.position).isEqualTo(adjustedDistancePulled) in pullInterrupted()
/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/pulltorefresh/
DPullToRefresh.kt270 private val adjustedDistancePulled: Float constant in androidx.compose.material3.pulltorefresh.PullToRefreshModifierNode
277 get() = adjustedDistancePulled / thresholdPx
353 if (adjustedDistancePulled > thresholdPx) { in onRelease()
379 adjustedDistancePulled <= thresholdPx -> adjustedDistancePulled in calculateVerticalOffset()