enum PointerCapture
Swift
enum PointerCapture
Routes pointer motion to whichever node started a drag.
Without capture, a drag that leaves the field's bounds would stop extending the selection — the hit test would simply miss. Capture is what makes "press inside, drag anywhere" behave the way every text control does.
Sources/LavaUI/Focus.swift:215
Properties
static var isActive: Bool { get }
Not documented.
Sources/LavaUI/Focus.swift:220
Methods
static func capture(_ id: NodeID, onMove: @escaping (Float, Float) -> Void, onUp: @escaping () -> Void = {})
Not documented.
Sources/LavaUI/Focus.swift:222
static func move(x: Float, y: Float)
Window coordinates; the owner converts to its own space.
Sources/LavaUI/Focus.swift:242
static func release()
Not documented.
Sources/LavaUI/Focus.swift:246