MouseEvent
Defined in: src/driver/driver.ts:23
A normalized mouse/pointer event in cell coordinates.
Properties
Section titled “Properties”button
Section titled “button”button:
"left"|"right"|"middle"|"none"
Defined in: src/driver/driver.ts:31
Which button (or "none" for moves/scroll).
clickCount?
Section titled “clickCount?”
optionalclickCount?:number
Defined in: src/driver/driver.ts:37
Consecutive-click count on a press, synthesized by the input layer from
press timing + position (terminals don’t report it): 1 = single, 2 = double
(select word), 3 = triple (select line/all). Undefined on non-press events.
handled?
Section titled “handled?”
optionalhandled?:boolean
Defined in: src/driver/driver.ts:39
Set true to mark the event consumed.
type:
"press"|"release"|"drag"|"move"|"scroll_up"|"scroll_down"
Defined in: src/driver/driver.ts:29
Event kind.
x:
number
Defined in: src/driver/driver.ts:25
Column (cell x).
y:
number
Defined in: src/driver/driver.ts:27
Row (cell y).