Home
last modified time | relevance | path

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

/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/
DRotary.kt1093 val snapDistance = (snapAccumulator / snapThreshold).toInt() in handleScrollEvent() constant
1095 snapAccumulator -= snapThreshold * snapDistance in handleScrollEvent()
1099 "Snap threshold reached: snapDistance:$snapDistance, " + in handleScrollEvent()
1103 if ((!snapBehaviour.topEdgeReached() && snapDistance < 0) || in handleScrollEvent()
1104 (!snapBehaviour.bottomEdgeReached() && snapDistance > 0) in handleScrollEvent()
1109 snapBehaviour.prepareSnapForItems(snapDistance, sequentialSnap) in handleScrollEvent()
1201 val snapDistance = sign(snapAccumulator).toInt() in handleScrollEvent() constant
1205 "Snap threshold reached: snapDistance:$snapDistance, " + in handleScrollEvent()
1210 snapBehaviour.prepareSnapForItems(snapDistance, sequentialSnap) in handleScrollEvent()