ReaderViewPanZoomGestureOptions

data class ReaderViewPanZoomGestureOptions(val allowSinglePointerPan: Boolean = true, val maxPanOffsetHorizontal: String = "50%", val maxPanOffsetVertical: String = "50%", val maxScaleFactor: Double = 5.0, val pinchZoomThresholdPx: Int = 32, val pointerTypes: PointerTypeOptions = PointerTypeOptions(), val removeTransformOnZoomOutGesture: Boolean = true)

Options used for configuring the panZoom gesture on a ReaderView. Part of IReaderViewOptions.gestureOptions

Constructors

Link copied to clipboard
fun ReaderViewPanZoomGestureOptions(allowSinglePointerPan: Boolean = true, maxPanOffsetHorizontal: String = "50%", maxPanOffsetVertical: String = "50%", maxScaleFactor: Double = 5.0, pinchZoomThresholdPx: Int = 32, pointerTypes: PointerTypeOptions = PointerTypeOptions(), removeTransformOnZoomOutGesture: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

Allow panning with single pointer.

Link copied to clipboard

The maximum horizontal pan offset relative to the dimensions of the ReaderView, defined as a CSS string in pixels or percentage.

Link copied to clipboard

The maximum vertical pan offset relative to the dimensions of the ReaderView, defined as a CSS string in pixels or percentage.

Link copied to clipboard

The maximum allowed scale factor.

Link copied to clipboard

How much the distance between pointers has to change before applying zoom/scale.

Link copied to clipboard

Sets which pointer-types that should trigger pan-zoom gestures.

Link copied to clipboard

Allow pan-zoom gestures to exit the transform when zoomed out to a scale factor close to 1.