library / com.otaliastudios.zoom / ZoomApi / panTo

panTo

abstract fun panTo(x: Float, y: Float, animate: Boolean): Unit

Pans the content until the top-left coordinates match the given x-y values. These are referred to the content size so they do not depend on current zoom.

Parameters

x - the desired left coordinate

y - the desired top coordinate

animate - whether to animate the transition