MCPcopy
hub / github.com/anvaka/VivaGraphJS / handleTouchStart

Function handleTouchStart

src/Input/dragndrop.js:225–237  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

223 },
224
225 handleTouchStart = function (e) {
226 if (e.touches.length === 1) {
227 return handleSignleFingerTouch(e, e.touches[0]);
228 } else if (e.touches.length === 2) {
229 // handleTouchMove() will care about pinch zoom.
230 stopPropagation(e);
231 preventDefault(e);
232
233 pinchZoomLength = getPinchZoomLength(e.touches[0], e.touches[1]);
234
235 }
236 // don't care about the rest.
237 };
238
239
240 element.addEventListener('mousedown', handleMouseDown);

Callers

nothing calls this directly

Calls 4

handleSignleFingerTouchFunction · 0.85
preventDefaultFunction · 0.85
getPinchZoomLengthFunction · 0.85
stopPropagationFunction · 0.70

Tested by

no test coverage detected