MCPcopy Create free account
hub / github.com/idank/explainshell / mousewheel

Function mousewheel

explainshell/web/static/js/d3.v3.js:1181–1186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1179 }
1180 }
1181 function mousewheel() {
1182 if (!translate0) translate0 = location(d3.mouse(this));
1183 scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * scale);
1184 translateTo(d3.mouse(this), translate0);
1185 dispatch(event.of(this, arguments));
1186 }
1187 function mousemove() {
1188 translate0 = null;
1189 }

Callers

nothing calls this directly

Calls 4

locationFunction · 0.85
scaleToFunction · 0.85
translateToFunction · 0.85
dispatchFunction · 0.85

Tested by

no test coverage detected