MCPcopy Index your code
hub / github.com/witheve/Eve / wheelEventDelta

Function wheelEventDelta

src/codemirror.js:4007–4013  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4005 else if (safari) wheelPixelsPerUnit = -1/3;
4006
4007 var wheelEventDelta = function(e) {
4008 var dx = e.wheelDeltaX, dy = e.wheelDeltaY;
4009 if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) dx = e.detail;
4010 if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) dy = e.detail;
4011 else if (dy == null) dy = e.wheelDelta;
4012 return {x: dx, y: dy};
4013 };
4014 CodeMirror.wheelEventPixels = function(e) {
4015 var delta = wheelEventDelta(e);
4016 delta.x *= wheelPixelsPerUnit;

Callers 2

codemirror.jsFile · 0.85
onScrollWheelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected