MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / isMiddleButtonDrag

Function isMiddleButtonDrag

src/interaction/createInsideZoom.ts:57–58  ·  view source on GitHub ↗
(e: PointerEvent)

Source from the content-addressed store, hash-verified

55};
56
57const isMiddleButtonDrag = (e: PointerEvent): boolean =>
58 e.pointerType === 'mouse' && (e.buttons & 4) !== 0;
59
60const isShiftLeftDrag = (e: PointerEvent): boolean =>
61 e.pointerType === 'mouse' && e.shiftKey && (e.buttons & 1) !== 0;

Callers 1

onMouseMoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected