Function

panBy

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

panBy

Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
public suspend fun TransformableState.panBy(offset: Offset): Unit

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

Parameters

offset offset in pixels by which to pan

panBy

Source set: Common
public suspend fun TransformableState.panBy(
    offset: Offset,
    centroid: Offset = Offset.Unspecified,
): Unit

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

Parameters

offset offset in pixels by which to pan
centroid the Offset around which the pan should occur, if any. The default value is Offset.Unspecified, which leaves the behavior up to the implementation of the TransformableState.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: