MCPcopy
hub / github.com/kobaltedev/kobalte / createPointerEvent

Function createPointerEvent

packages/tests/src/utils.ts:69–85  ·  view source on GitHub ↗
(type: any, opts: any)

Source from the content-addressed store, hash-verified

67}
68
69export function createPointerEvent(type: any, opts: any) {
70 const evt = new Event(type, { bubbles: true, cancelable: true });
71 Object.assign(
72 evt,
73 {
74 ctrlKey: false,
75 metaKey: false,
76 shiftKey: false,
77 altKey: false,
78 button: opts.button || 0,
79 width: 1,
80 height: 1,
81 },
82 opts,
83 );
84 return evt;
85}

Callers 8

combobox.test.tsxFile · 0.90
listbox.test.tsxFile · 0.90
select.test.tsxFile · 0.90
tabs.test.tsxFile · 0.90
toast.test.tsxFile · 0.90
triggerTouchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected