draggable

fun <T : Any, F : DraggableFeature<T>> FeatureRef<T, F>.draggable(constraint: (T) -> T? = null, listener: PointerEvent.(from: ViewPoint<T>, to: ViewPoint<T>) -> Unit? = null): FeatureRef<T, F>

Add drag to this feature

Parameters

constraint

optional drag constraint