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

Method getOnDown

src/system/pointer/mouse.ts:50–55  ·  view source on GitHub ↗
(button: number)

Source from the content-addressed store, hash-verified

48 }
49
50 getOnDown(button: number) {
51 this.down = {[button]: this.count[button] ?? 0}
52 this.count = {[button]: this.count[button] ?? 0}
53
54 return Number(this.count[button]) + 1
55 }
56
57 getOnUp(button: number) {
58 return this.down[button] === undefined

Callers 1

getEventInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected