ZoomSpec

class ZoomSpec(val maxZoomFactor: Float = 2.0f, val preventOverOrUnderZoom: Boolean = true)

Constructors

Link copied to clipboard
constructor(maxZoomFactor: Float = 2.0f, preventOverOrUnderZoom: Boolean = true)

Properties

Link copied to clipboard
val maxZoomFactor: Float = 2.0f

The maximum zoom level as a percentage of the content size before rubber banding kicks in.

Link copied to clipboard

Whether to apply rubber banding to zoom gestures when content is over or under zoomed as a form of visual feedback that the content can't be zoomed any further. When set to false, content will keep zooming in a free-form manner even when it goes beyond its boundaries (until the gesture is released).