MCPcopy Index your code
hub / github.com/DHTMLX/gantt / wheelEventDelta

Function wheelEventDelta

samples/common/codehighlight/codemirror.js:4461–4467  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4459 else if (safari) { wheelPixelsPerUnit = -1/3; }
4460
4461 function wheelEventDelta(e) {
4462 var dx = e.wheelDeltaX, dy = e.wheelDeltaY;
4463 if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) { dx = e.detail; }
4464 if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) { dy = e.detail; }
4465 else if (dy == null) { dy = e.wheelDelta; }
4466 return {x: dx, y: dy}
4467 }
4468 function wheelEventPixels(e) {
4469 var delta = wheelEventDelta(e);
4470 delta.x *= wheelPixelsPerUnit;

Callers 2

wheelEventPixelsFunction · 0.85
onScrollWheelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected