panBy

abstract suspend fun panBy(offset: Offset, animationSpec: AnimationSpec<Offset> = DefaultPanAnimationSpec)

Animate pan by offset Offset in pixels and suspend until it's finished.

Parameters

animationSpec

The animation spec to use or SnapSpec for no animation.