Skip to content

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?

optional offsets?: 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?

optional startX?: number

Defined in: packages/testing/dist/user-event/gesture.d.ts:25

Horizontal coordinate the drag begins at; defaults to 0.


startY?

optional startY?: number

Defined in: packages/testing/dist/user-event/gesture.d.ts:27

Vertical coordinate the drag begins at; defaults to 0.


steps?

optional steps?: 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.

Released under the MPL-2.0 License.