Skip to content

DragEvent

class DragEvent(
    type: PointerEventType = PointerEventType.DRAG, 
    mouseX: Double, 
    mouseY: Double, 
    val button: Int, 
    val dragX: Double, 
    val dragY: Double
) : PointerEvent

A pointer event generated by click-dragging the mouse.

Constructors

DragEvent

constructor(
    type: PointerEventType = PointerEventType.DRAG, 
    mouseX: Double, 
    mouseY: Double, 
    button: Int, 
    dragX: Double, 
    dragY: Double
)

Properties

button

val button: Int

dragX

val dragX: Double

dragY

val dragY: Double

mouseX

val mouseX: Double

mouseY

val mouseY: Double

type

Functions

consume

fun consume(bypassSuperCall: Boolean = false)

Marks this event as consumed, stopping further propagation.

Parameters

  • bypassSuperCall: When true, the corresponding screen method will return true instead of delegating to the super implementation. Use this when the UI has fully handled a keyboard or mouse event and the vanilla logic should be suppressed.