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

Function handleWheel

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

Source from the content-addressed store, hash-verified

69 }
70
71 function handleWheel(e) {
72 if (e.deltaY == 0) return;
73 // Change scale factor by 1.1 or 1/1.1
74 rescale(currentScale * (e.deltaY < 0 ? 1.1 : (1/1.1)),
75 toSvg(e.offsetX, e.offsetY));
76 }
77
78 function setMode(m) {
79 mode = m;

Callers

nothing calls this directly

Calls 2

rescaleFunction · 0.85
toSvgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…