API Reference / @gtkx/testing / DragOptions
Type Alias: DragOptions
DragOptions =
object
Defined in: packages/testing/src/user-event/gesture.ts:36
Options for a drag gesture: the starting point, the number of interpolated drag updates, or explicit intermediate offsets emitted before the final one.
Properties
offsets?
optionaloffsets?:DragOffset[]
Defined in: packages/testing/src/user-event/gesture.ts:44
Explicit intermediate offsets emitted before the requested one, used instead of steps.
startX?
optionalstartX?:number
Defined in: packages/testing/src/user-event/gesture.ts:38
Horizontal coordinate the drag begins at; defaults to 0.
startY?
optionalstartY?:number
Defined in: packages/testing/src/user-event/gesture.ts:40
Vertical coordinate the drag begins at; defaults to 0.
steps?
optionalsteps?:number
Defined in: packages/testing/src/user-event/gesture.ts:42
Number of evenly interpolated drag updates, the last of which is the requested offset; defaults to 2.