struct DragGestureValue
Swift
struct DragGestureValue
One step of an .onDragGesture, delivered to its handler.
Sources/LavaUI/DragGesture.swift:27
Properties
var phase: DragGesturePhase
Which step of the gesture this is.
Sources/LavaUI/DragGesture.swift:29
var startX: Float
Where the press went down, in window coordinates.
Sources/LavaUI/DragGesture.swift:31
var translationX: Float { get }
Horizontal distance from the press to the pointer.
Sources/LavaUI/DragGesture.swift:40
var translationY: Float { get }
Vertical distance from the press to the pointer.
Sources/LavaUI/DragGesture.swift:42
var x: Float
Where the pointer is now, in window coordinates.
Sources/LavaUI/DragGesture.swift:35
var y: Float
Vertical position of the pointer now. See x.
Sources/LavaUI/DragGesture.swift:37