scoop:scoop.ui:0.1.0
src/scroll/pan_options.scoop
Selected production source · src/scroll/pan_options.scoop
1
package scoop.ui3
/** Whether an enclosing viewport may consume the remaining movement. */4
public enum ScrollChain {5
Chain, Contain6
}8
/** Direct-contact scrolling does not change native wheel or trackpad behavior. */9
public class TouchScrollOptions public constructor(10
public val enabled: Boolean = true,11
public val threshold: Double = 8.0,12
public val lockAxis: Boolean = true,13
public val claimAtBoundary: Boolean = true14
) {15
init {16
requireUi(17
threshold.isFinite() && threshold >= 0.0,18
"touch scroll threshold must be finite and nonnegative"19
)20
}21
}