library / com.otaliastudios.zoom / ZoomEngine / panBy

panBy

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

Overrides ZoomApi.panBy

Pans the content by the given quantity in dx-dy values. These are referred to the content size passed in setContentSize, 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