MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / handleMouseDown

Function handleMouseDown

core/src/utils/gesture/pointer-events.ts:51–64  ·  view source on GitHub ↗
(ev: any)

Source from the content-addressed store, hash-verified

49 };
50
51 const handleMouseDown = (ev: any) => {
52 if (lastTouchEvent > Date.now()) {
53 return;
54 }
55 if (!pointerDown(ev)) {
56 return;
57 }
58 if (!rmMouseMove && pointerMove) {
59 rmMouseMove = addEventListener(getDocument(el), 'mousemove', pointerMove, options);
60 }
61 if (!rmMouseUp) {
62 rmMouseUp = addEventListener(getDocument(el), 'mouseup', handleMouseUp, options);
63 }
64 };
65
66 const handleTouchEnd = (ev: any) => {
67 stopTouch();

Callers

nothing calls this directly

Calls 3

addEventListenerFunction · 0.90
getDocumentFunction · 0.85
pointerDownFunction · 0.70

Tested by

no test coverage detected