Function

calculatePan

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

calculatePan

Source set: Common
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:

Last updated: