Searched refs:snapThreshold (Results 1 – 2 of 2) sorted by relevance
1073 val snapThreshold = thresholdBehavior.snapThreshold() in handleScrollEvent() constant1078 1 - scrollEasing.transform(rotaryScrollDistance.absoluteValue / snapThreshold) in handleScrollEvent()1085 debugLog { "snapThreshold: $snapThreshold" } in handleScrollEvent()1088 if (abs(snapAccumulator) > snapThreshold) { in handleScrollEvent()1093 val snapDistance = (snapAccumulator / snapThreshold).toInt() in handleScrollEvent()1095 snapAccumulator -= snapThreshold * snapDistance in handleScrollEvent()1270 fun snapThreshold(): Float { in snapThreshold() method in ThresholdBehavior
1069 final float snapThreshold = (count == 0) ? Float.MAX_VALUE : .125f / count; in scrollTo() local1070 if (prevSection == exactSection && position - prevPosition < snapThreshold) { in scrollTo()