pan By
open suspend fun panBy(offset: Offset, animationSpec: AnimationSpec<Offset> = DefaultPanAnimationSpec)
Animate pan by offset in pixels and suspend until it's finished.
Parameters
offset
Distance for this pan, in the viewport's coordinate space. To specify an offset in content coordinates, use the SpatialOffset overload instead.
animation Spec
The animation spec to use or SnapSpec for no animation.
abstract suspend fun panBy(offset: SpatialOffset, animationSpec: AnimationSpec<Offset> = DefaultPanAnimationSpec)
See panBy.