MCPcopy Create free account
hub / github.com/google/pprof / touchGap

Function touchGap

internal/driver/html/common.js:145–149  ·  view source on GitHub ↗
(t1, t2)

Source from the content-addressed store, hash-verified

143
144 // Return distance between two touch points
145 function touchGap(t1, t2) {
146 const dx = t1.clientX - t2.clientX;
147 const dy = t1.clientY - t2.clientY;
148 return Math.hypot(dx, dy);
149 }
150
151 function handleTouchStart(e) {
152 if (mode == IDLE && e.changedTouches.length == 1) {

Callers 2

handleTouchStartFunction · 0.85
handleTouchMoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…