Skip to content

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

Interface: PanelPointer ​

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

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:84

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


deltaY ​

deltaY: number

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

The wheel's turn (down is positive).


kind ​

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

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

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:86

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


x ​

x: number

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


y ​

y: number

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