Skip to content

ScrollConfig

interludesoftware.tick

Interlude.Tick

ScrollConfig Struct

public struct ScrollConfig

Properties

ScrollConfig.AllowMouseDrag Property

When true, the mouse pointer's left-button-drag also scrolls. Off by default because desktop convention reserves mouse drag for selection / grabbing widgets; turn on for hybrid touch / mouse builds (mobile companion apps run on a desktop, touch-style UIs that also accept a pointer).

public bool AllowMouseDrag { get; set; }

Property Value

System.Boolean

ScrollConfig.AllowTouchDrag Property

When true (default), a touch press inside the view rect followed by movement past DragThreshold translates the scroll offset. The mouse pointer is excluded — mouse-left-drag-to-scroll is opt-in via AllowMouseDrag.

public bool AllowTouchDrag { get; set; }

Property Value

System.Boolean

ScrollConfig.Default Property

Default-initialised ScrollConfig ships with touch drag on and mouse drag off. Callers that build a config directly (new ScrollConfig { … }) miss these defaults; use this static instead, or set the fields explicitly.

public static Interlude.Tick.ScrollConfig Default { get; }

Property Value

ScrollConfig

ScrollConfig.DragThreshold Property

Layout-space pixels a pointer must move from its press position before the press is interpreted as a drag. Below the threshold the pointer is still a "potential" drag — no scroll happens — so a finger that taps a button inside the scroll without moving doesn't accidentally translate the view.

public float DragThreshold { get; set; }

Property Value

System.Single