Companion

object Companion

Functions

Link copied to clipboard

Zoom while moving newCenter to the center of the viewport.

Link copied to clipboard

No panning. Zooms around the center of the viewport.

Link copied to clipboard

Zoom around centroid as the pivot for zooming. When you zoom in or out, this point stays exactly where it is on your screen, and everything else moves around it. This is the default anchor used when you're zooming using a pinch gesture or a double tap.