API Reference / @gtkx/testing / DragOptions
Type Alias: DragOptions
DragOptions =
object
Defined in: packages/testing/dist/user-event/gesture.d.ts:23
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/dist/user-event/gesture.d.ts:31
Explicit intermediate offsets emitted before the requested one, used instead of steps.
startX?
optionalstartX?:number
Defined in: packages/testing/dist/user-event/gesture.d.ts:25
Horizontal coordinate the drag begins at; defaults to 0.
startY?
optionalstartY?:number
Defined in: packages/testing/dist/user-event/gesture.d.ts:27
Vertical coordinate the drag begins at; defaults to 0.
steps?
optionalsteps?:number
Defined in: packages/testing/dist/user-event/gesture.d.ts:29
Number of evenly interpolated drag updates, the last of which is the requested offset; defaults to 2.