Home
last modified time | relevance | path

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

/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/pulltorefresh/
DPullToRefresh.kt273 private val thresholdPx constant in androidx.compose.material3.pulltorefresh.PullToRefreshModifierNode
277 get() = adjustedDistancePulled / thresholdPx
282 verticalOffset = if (isRefreshing) thresholdPx.toFloat() else 0f in onAttach()
312 state.snapTo(verticalOffset / thresholdPx) in onPostScroll()
353 if (adjustedDistancePulled > thresholdPx) { in onRelease()
379 adjustedDistancePulled <= thresholdPx -> adjustedDistancePulled in calculateVerticalOffset()
388 val extraOffset = thresholdPx * tensionPercent in calculateVerticalOffset()
389 thresholdPx + extraOffset in calculateVerticalOffset()
397 distancePulled = thresholdPx.toFloat() in animateToThreshold()
398 verticalOffset = thresholdPx.toFloat() in animateToThreshold()
/compose/material/material/src/commonMain/kotlin/androidx/compose/material/pullrefresh/
DPullRefreshState.kt67 val thresholdPx: Float in <lambda>() constant
71 thresholdPx = refreshThreshold.toPx() in <lambda>()
76 remember(scope) { PullRefreshState(scope, onRefreshState, refreshingOffsetPx, thresholdPx) } in <lambda>()
80 state.setThreshold(thresholdPx) in <lambda>()
/compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/
DFloatingToolbarTest.kt1052 var thresholdPx = 0f in <lambda>() variable
1060 thresholdPx = in <lambda>()
1070 swipeUp(bottom, bottom - thresholdPx / 4f) in <lambda>()
1077 swipeUp(bottom, bottom - thresholdPx * 2) in <lambda>()
1086 var thresholdPx = 0f in <lambda>() variable
1094 thresholdPx = with(LocalDensity.current) { customThreshold.toPx() } in <lambda>()
1101 swipeUp(bottom, bottom - thresholdPx / 4f) in <lambda>()
1108 swipeUp(bottom, bottom - thresholdPx) in <lambda>()