Interface: MouseEvent
@termwright/driver/experimental
@termwright/driver/experimental / MouseEvent
Interface: MouseEvent
Section titled “Interface: MouseEvent”Defined in: mouse.ts:24
One mouse event in viewport cell coordinates (zero-based).
Properties
Section titled “Properties”button?
Section titled “button?”
readonlyoptionalbutton?:MouseButton
Defined in: mouse.ts:28
column
Section titled “column”
readonlycolumn:number
Defined in: mouse.ts:27
dragging?
Section titled “dragging?”
readonlyoptionaldragging?:boolean
Defined in: mouse.ts:34
True while a button is held (motion events use the drag bit).
readonlykind:"press"|"release"|"move"|"wheel"
Defined in: mouse.ts:25
modifiers?
Section titled “modifiers?”
readonlyoptionalmodifiers?: readonly ("shift"|"alt"|"control")[]
Defined in: mouse.ts:29
readonlyrow:number
Defined in: mouse.ts:26
wheelAxis?
Section titled “wheelAxis?”
readonlyoptionalwheelAxis?:"vertical"|"horizontal"
Defined in: mouse.ts:32
wheelDelta?
Section titled “wheelDelta?”
readonlyoptionalwheelDelta?:number
Defined in: mouse.ts:31
Wheel direction; positive scrolls down, negative scrolls up.