library / com.otaliastudios.zoom / ZoomApi / panBy

panBy

abstract fun panBy(dx: Float, dy: Float, animate: Boolean): Unit

Pans the content by the given quantity in dx-dy values. These are referred to the content size so they do not depend on current zoom.

In other words, asking to pan by 1 pixel might result in a bigger pan, if the content was zoomed in.

Parameters

dx - the desired delta x

dy - the desired delta y

animate - whether to animate the transition