commonMain.ovh.plrapps.mapcompose.core.GestureConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapcompose-mp-desktop Show documentation
Show all versions of mapcompose-mp-desktop Show documentation
A Compose Multiplatform library to display tiled maps, with support for markers, paths, and rotation
The newest version!
package ovh.plrapps.mapcompose.core
/**
* Configuration of various gestures.
* Scroll fling friction is controlled by [ViewConfiguration.getScrollFriction].
*/
class GestureConfiguration {
/**
* The friction multiplier of the zoom fling, indicating how quickly the animation should stop.
* This should be greater than 0, with a default value of 1.5f. Minimum allowed value is 0.5f.
*/
var flingZoomFriction: Float = 1.5f
set(value) {
field = value.coerceAtLeast(0.5f)
}
}