Drag

data class Drag(val position: IntOffset, val button: PointerButton, val deltaX: Double, val deltaY: Double) : PointerEvent(source)

A pointer movement event while one typed button remains held.

Positive PointerEvent.Drag.deltaX requests motion toward increasing logical x. Positive PointerEvent.Drag.deltaY requests motion toward increasing logical y. Adapters normalize native coordinates and units into this logical displacement.

Constructors

Link copied to clipboard
constructor(position: IntOffset, button: PointerButton, deltaX: Double, deltaY: Double)

Properties

Link copied to clipboard

logical button held for the drag.

Link copied to clipboard

horizontal logical displacement since the previous native drag event.

Link copied to clipboard

vertical logical displacement since the previous native drag event.

Link copied to clipboard
open override val position: IntOffset

current tree-coordinate event position.