MCPcopy Create free account
hub / github.com/testing-library/user-event / constructor

Method constructor

src/system/pointer/pointer.ts:13–22  ·  view source on GitHub ↗
(
    {pointerId, pointerType, isPrimary}: PointerInit,
    buttons: Buttons,
  )

Source from the content-addressed store, hash-verified

11
12export class Pointer {
13 constructor(
14 {pointerId, pointerType, isPrimary}: PointerInit,
15 buttons: Buttons,
16 ) {
17 this.pointerId = pointerId
18 this.pointerType = pointerType
19 this.isPrimary = isPrimary
20 this.isMultitouch = !isPrimary
21 this.buttons = buttons
22 }
23 readonly pointerId: number
24 readonly pointerType: string
25 readonly isPrimary: boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected