MCPcopy
hub / github.com/Shopify/draggable / clickMouse

Function clickMouse

test/helpers/sensor.ts:23–28  ·  view source on GitHub ↗
(element: HTMLElement, options = {})

Source from the content-addressed store, hash-verified

21}
22
23export function clickMouse(element: HTMLElement, options = {}) {
24 return triggerEvent(element, 'mousedown', {
25 ...defaultMouseEventOptions,
26 ...options,
27 });
28}
29
30export function moveMouse(element: HTMLElement, options = {}) {
31 return triggerEvent(element, 'mousemove', {

Callers 15

dragFunction · 0.90
Droppable.test.jsFile · 0.90
moveFunction · 0.90
DragSensor.test.jsFile · 0.90
dragFlowFunction · 0.90
hastyDragFlowFunction · 0.90
dragFlowFunction · 0.90
dragFlowWithRightClickFunction · 0.90
dragFlowWithCtrlKeyFunction · 0.90
dragFlowWithMetaKeyFunction · 0.90

Calls 1

triggerEventFunction · 0.90

Tested by 8

moveFunction · 0.72
dragFlowFunction · 0.72
hastyDragFlowFunction · 0.72
dragFlowFunction · 0.72
dragFlowWithRightClickFunction · 0.72
dragFlowWithCtrlKeyFunction · 0.72
dragFlowWithMetaKeyFunction · 0.72
hastyDragFlowFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…