MCPcopy Create free account
hub / github.com/breck7/scroll / defaultWheelDelta

Function defaultWheelDelta

external/.d3.js:19637–19639  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

19635}
19636
19637function defaultWheelDelta(event) {
19638 return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002) * (event.ctrlKey ? 10 : 1);
19639}
19640
19641function defaultTouchable() {
19642 return navigator.maxTouchPoints || ("ontouchstart" in this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected