Loading packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/MultiPointerDraggable.kt +44 −37 Original line number Diff line number Diff line Loading @@ -241,6 +241,10 @@ internal class MultiPointerDraggableNode( } } // The order is important here: we want to make sure that the previous PointerEventScope // is initialized first. This ensures that the following PointerEventScope doesn't // receive more events than the first one. launch { awaitPointerEventScope { while (isActive) { try { Loading @@ -258,7 +262,9 @@ internal class MultiPointerDraggableNode( onDragEnd = { controller -> val viewConfiguration = currentValueOf(LocalViewConfiguration) val maxVelocity = viewConfiguration.maximumFlingVelocity.let { Velocity(it, it) } viewConfiguration.maximumFlingVelocity.let { Velocity(it, it) } val velocity = velocityTracker.calculateVelocity(maxVelocity) controller.onStop( velocity = Loading @@ -284,6 +290,7 @@ internal class MultiPointerDraggableNode( } } } } /** * Detect drag gestures in the given [orientation]. Loading Loading
packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/MultiPointerDraggable.kt +44 −37 Original line number Diff line number Diff line Loading @@ -241,6 +241,10 @@ internal class MultiPointerDraggableNode( } } // The order is important here: we want to make sure that the previous PointerEventScope // is initialized first. This ensures that the following PointerEventScope doesn't // receive more events than the first one. launch { awaitPointerEventScope { while (isActive) { try { Loading @@ -258,7 +262,9 @@ internal class MultiPointerDraggableNode( onDragEnd = { controller -> val viewConfiguration = currentValueOf(LocalViewConfiguration) val maxVelocity = viewConfiguration.maximumFlingVelocity.let { Velocity(it, it) } viewConfiguration.maximumFlingVelocity.let { Velocity(it, it) } val velocity = velocityTracker.calculateVelocity(maxVelocity) controller.onStop( velocity = Loading @@ -284,6 +290,7 @@ internal class MultiPointerDraggableNode( } } } } /** * Detect drag gestures in the given [orientation]. Loading