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

Function handleTouchEnd

internal/driver/html/common.js:195–207  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

193 }
194
195 function handleTouchEnd(e) {
196 if (mode == TOUCHPAN) {
197 const t = findTouch(e.changedTouches, touchid);
198 if (t == null) return;
199 panMove(t.clientX, t.clientY);
200 setMode(IDLE);
201 e.preventDefault();
202 if (!moved) clickHandler(t.target);
203 } else if (mode == TOUCHZOOM) {
204 setMode(IDLE);
205 e.preventDefault();
206 }
207 }
208
209 svg.addEventListener('mousedown', handleScanStart);
210 svg.addEventListener('mouseup', handleScanEnd);

Callers

nothing calls this directly

Calls 3

findTouchFunction · 0.85
panMoveFunction · 0.85
setModeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…