Companion

Properties

Link copied to clipboard

Maximum finger-hold time (ms) for a tap to qualify as a double-tap seek.

Link copied to clipboard

Time window (ms) between taps to count as a double-tap. Also determines how long a single-tap is delayed before firing.

Link copied to clipboard

Fraction of view width on each side that counts as "left" / "right" seek zone.

Link copied to clipboard
const val HORIZONTAL_MULTIPLIER: Float = 2.0f
Link copied to clipboard
const val MAXIMUM_ZOOM: Float = 4.0f

Maximum zoom to prevent the user from getting lost.

Link copied to clipboard
Link copied to clipboard
const val MINIMUM_SEEK_TIME: Long = 7000

Swipe-seek constants

Link copied to clipboard
const val MINIMUM_VERTICAL_SWIPE: Float = 2.0f
Link copied to clipboard
const val MINIMUM_ZOOM: Float = 0.95f

Minimum zoom; allows zooming out past 100% but snaps back.

Link copied to clipboard
const val VERTICAL_MULTIPLIER: Float = 2.0f
Link copied to clipboard
const val ZOOM_SNAP_SENSITIVITY: Float = 0.07f

Sensitivity for the auto-snap to 100% at the minimum zoom boundary.

Functions

Link copied to clipboard

Extracts translation and uniform scale from a matrix with no rotation.