Skip to content

five-on-it / apps/client/src/gui/panel / PanelPointer

Interface: PanelPointer ​

Defined in: apps/client/src/gui/panel.ts:75

A pointer event as a panel answers it: where on the page (px from the canvas' top-left).

Properties ​

button ​

button: number

Defined in: apps/client/src/gui/panel.ts:81

The button that went down or up (0: the left one).


deltaY ​

deltaY: number

Defined in: apps/client/src/gui/panel.ts:85

The wheel's turn (down is positive).


kind ​

kind: "out" | "up" | "down" | "move" | "wheel"

Defined in: apps/client/src/gui/panel.ts:77

It moved, a button went down or up, the wheel turned, or it left the canvas.


pointerId ​

pointerId: number

Defined in: apps/client/src/gui/panel.ts:83

The pointer's own id: the mouse's, or each finger's.


x ​

x: number

Defined in: apps/client/src/gui/panel.ts:78


y ​

y: number

Defined in: apps/client/src/gui/panel.ts:79