MCPcopy Index your code
hub / github.com/bqplot/bqplot / mousewheel

Method mousewheel

js/src/PanZoom.ts:215–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213 }
214
215 mousewheel() {
216 if (this.model.get('allow_zoom')) {
217 const event = d3GetEvent();
218 event.preventDefault();
219 const delta = event.deltaY * -1;
220 const mouse_pos = this.mousePos();
221 this._zoom(mouse_pos, delta);
222 }
223 }
224
225 _zoom(mouse_pos, delta) {
226 if (delta) {

Callers 1

renderMethod · 0.80

Calls 3

mousePosMethod · 0.95
_zoomMethod · 0.95
d3GetEventFunction · 0.90

Tested by

no test coverage detected