🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

calculatePan

Returns the change in the centroid location between the previous and the current pointers that are down.

calculatePan

Source set: Common
public fun PointerEvent.calculatePan(): Offset

Returns the change in the centroid location between the previous and the current pointers that are down. Pointers that are newly down or raised are not considered in the centroid movement.

Example Usage: