panBy

Function

Common
suspend fun TransformableState.panBy(offset: Offset) = transform { transformBy(1f, offset, 0f) }

Pan without animation by a offset Offset in pixels and suspend until it's set.

Parameters

offsetoffset in pixels by which to pan